@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Belleza&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #252121;
    background-color: white;
}

/* Header */
header {
    background-color: #f2f2f2;
    padding: 15px 30px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 30px;
    font-weight: 600;
    font-family: "Belleza", sans-serif;
    color: #004785;
    margin-right: auto; /* Pushes the nav to the right */
    margin-bottom:-10px;
}

.logo img {
    max-width: 230px;
}

/* Navbar Styles */
nav {
    display: flex;
    justify-content: flex-end; /* Aligns nav to the right */
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li {
    position: relative;
    font-weight: 600;
    color: #004785;
    font-size: 16px;
    padding: 10px;
    
}

nav ul li a {
    text-decoration: none;
    color: inherit;
}

.nav_heading {
    cursor: pointer;
}

nav ul li:hover {
    background-color: #d9d9d9;
}

/* Dropdown Styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e6e6e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 235px;
    border-radius: 4px;
}

.dropdown_li:hover .dropdown {
    display: block; /* Show the dropdown on hover */
}

.dropdown li {
    padding: 0px;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    position: relative;
}

.dropdown li a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative; /* This makes the entire area of the list item clickable */
    z-index: 1; /* Ensures clickable area */
    padding: 6px; /* Keeps the padding from the <li> */
    box-sizing: border-box; /* Ensure the padding is respected within the element */
    font-weight: 500;
}

.dropdown li:hover {
    background-color: #e6e6e6;
}

/* Sub-dropdown Styles */
.dropdown_sub {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #f2f2f2;
    min-width: 200px;
    z-index: 1001;
}

.dropdown_li:hover .dropdown_sub {
    display: block; /* Show sub-dropdown */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #004785;
}

.hamburger i {
    font-size: 24px;
}

/* Mobile Styles */
@media (max-width: 1253px) {
    nav {
        position: fixed;
        top: 0;
        left: -70%; /* Initially hidden off-screen */
        width: 70%;
        height: 100vh;
        background-color: #f2f2f2;
        transition: left 0.3s ease; /* Animate the left property */
        z-index: 1002;
        display: flex;
        padding: 0;
        flex-direction: column;
        padding-top: 40px; /* Space for the logo or title */
        overflow-y: auto; /* Allow scrolling if needed */
        justify-content: flex-start;
        align-items: stretch;
    }

    nav.show {
        left: 0; /* Show the menu when toggled */
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        padding: 15px 20px;
        width: 100%;
        background-color: #f2f2f2;
        border-bottom: 1px solid #ccc;
    }

    nav ul li:hover {
        background-color: #e0e0e0;
    }

    .dropdown{
        position: relative;
        top:0;
        left:0;
    }
    .dropdown_li:hover .dropdown {
        display: none; /* Show the dropdown on hover */
    }

    /* Main menu item styling */
    .dropdown_li {
        cursor: pointer;
    }

    .dropdown_li .dropdown {
        display: none;
    }

    /* Sub-menu styling with indentation */
    .dropdown_li.active .dropdown {
        display: block;
        padding-left: 20px;  /* Indentation for sub-items */
        background-color: #e6e6e6;
    }

    .dropdown_li.active .dropdown li {
        padding: 10px 20px;
        border-bottom: 1px solid #ccc;
        background-color: #f9f9f9;
    }

    .dropdown_li.active .dropdown li:hover {
        background-color: #dcdcdc;
    }

    .dropdown_sub {
        display: none;
        padding-left: 20px; /* Further indentation for sub-sub-items */
    }

    .dropdown_li.active .dropdown_sub {
        display: block;
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 108px;
    left: 0;
    width: 0%;
    height: 6px;
    background-color: #004785;
    z-index: 999;
    transition: width 0.25s ease-out;
}

/* Footer Styles */
footer {
    margin-top: auto;
    background-color: #f2f2f2;
    display: flex;
    font-weight: 500;
    border-top: 2px solid #004785;
    color: #004785;
    padding: 15px 20px;
    justify-content: space-between;
}

