/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: white;
    color: #333; /* Dark text for contrast */
    scrollbar-width: thin;
}

body.nav-open {
    overflow: hidden; /* prevent scroll behind sidebar */
}

/* Header Styling */
header {
    /* display: flex;
    align-items: center;
    justify-content: space-between; */
    background-color:white;
    /* padding: 15px 30px; */
    /* border-top: 1px solid #cccccc; */ /* Thin line above the logo part */
    /* border-bottom: 1px solid #cccccc; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* width: 100%; */
    z-index: 1000;
    /* box-sizing: border-box; */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;   /* Adjust for your design */
    margin: 0 auto;      /* Center horizontally */
    padding: 15px 0px;
    box-sizing: border-box;
    width: 100%;
    height: 77px;
    transition: padding 0.3s ease;
}

.logo img {
    height: 33px !important;
    width: auto !important;
    display: block;
    align-items: center;
    justify-content: center;
    margin-right: 60px;
}

nav {
    flex: 1;
    text-align: right;
}

/* Header menu (desktop top bar) */
.header-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.header-menu li {
    margin-left: 10px;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    position: relative; 
}

.menu li {
    margin-left: 10px;
    position: relative;
}

.menu a {
    /*text-decoration: none;
    color: #003366; /* Navy blue text for links */
    /* font-weight: 500; */
    font-size: 13px;
    /* font-size: 16px; */
    text-transform: uppercase;
    /* transition: color 0.3s ease, font-weight 0.3s ease; */
    display: block;
    color: #003366;
    text-decoration: none;
    padding: 15px 17px; /* Consistent padding for items */
    /* font-family: Arial, sans-serif; */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: left;
    text-wrap: nowrap;
    border-radius: 4px;
    transition: font-size 0.3s ease;
    transition: padding 0.3s ease;
}

.menu a:hover,
.menu a.active {
    color:white;
    font-weight: 500;
    background-color: #003c82; /* Darker blue */
    position: relative; /* Prevent shifting on hover */
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0px;
    background-color: #ffffff;
    /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1000;
    border-radius: 10px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    font-size: 13px;
    /* font-size: 14px; */
    /* text-transform: capitalize; */
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* .dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: #5a84c4;
    color: #ffffff;
} */

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: #f8d761ff;
    color: #333;
}

/* Show Dropdown on Hover (desktop only) */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Main Content Styling */
main {
    text-align: center;
    /* padding: 120px 20px 80px; add extra top padding for header height */
}

/* .hero {
    font-weight: 700;
    margin-top: 100px;
} */

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-top: 100px;
    margin-bottom: 10px;
    color: #003366; /* Navy blue */
}

.hero p {
    font-size: 18px;
    color: #555; /* Subtle gray for secondary text */
}

/* Hamburger icon styling */

/* When nav is open, make sure X stays fixed */
.menu-toggle.open {
    position: fixed;
    top: 22px;
    right: 25px;
    z-index: 2003;
}

/* On desktop, adjust placement */
@media (min-width: 769px) {
    .menu-toggle {
        margin-left: 15px;
    }
}

@media (max-width: 1287px) {
    .header-container {
        padding: 15px 46px;
        transition: padding 0.3s ease;
    }
}

@media (max-width: 1150px) {
    .menu a {
        padding: 12px 10px;
        font-size: 12px;
        transition: font-size 0.3s ease;
        transition: padding 0.3s ease;
    }
}

/* Slide-in menu (hidden by default on mobile) */
@media (max-width: 830px) {
    .header-container {
        padding: 15px 17px;
    }
    .header-menu {
        display: none;
    }
    nav {
        position: fixed;
        right: auto;
        top: 0;
        /* left: -250px; */
        right: -250px;
        width: 250px;
        height: 89%;
        /* height: 90%; */
        overflow-y: auto;
        background-color: #ffffff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        /* transition: left 0.3s ease; */
        transition: right 0.3s ease;
        text-align: left;
        padding-top: 80px;
        z-index: 1001;
        scrollbar-width: thin;
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    nav.active {
        /* left: 0; */
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-left: 20px;
        justify-content: flex-start;
    }

    .menu li {
        margin: 10px 0;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 12px;
        color: #003366;
        text-align: left;
        text-decoration: none;
        font-weight: 500;
        font-size: 13px;
    }

    .menu a:hover, 
    .menu a.active {
        background-color: #003c82;
        color: white;
    }

    /* Dropdown on mobile (click behavior could be improved with JS later) */
    .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        padding: 0px;
    }

    .dropdown-menu li a {
        color: #333;
        padding: 10px 20px;
        font-weight: 100;
    }

    /* Animate hamburger to X */
    .menu-toggle.open i::before {
        content: "\f00d"; /* Font Awesome X (times) icon */
    }
}

/* Animate hamburger to X */
.menu-toggle.open i::before {
    content: "\f00d"; 
}

/* Hide the full slide-in menu by default */
#nav-menu {
    position: fixed;
    right: auto;
    top: 0;
    /* left: -250px; */
    right: -250px;
    width: 250px;
    height: 89%;
    /* height: 90%; */
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    /* transition: left 0.3s ease; */
    transition: right 0.3s ease;
    text-align: left;
    padding-top: 80px;
    z-index: 1001;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#nav-menu.active {
    right: 0;
}

/* Ensure full-menu is vertical in sidebar */
#nav-menu .full-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-left: 20px;
    justify-content: flex-start;
    margin-bottom: 80px;
}

.full-menu li {
    margin: 10px 0;
}

.full-menu a {
    display: block;
    width: 100%;
    padding: 12px;
    color: #003366;
    text-align: left;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    white-space: normal;
    line-height: 1.5;
}

.full-menu a:hover, 
.full-menu a.active {
    background-color: #003c82;
    color: white;
}

/* Dropdown on mobile (click behavior could be improved with JS later) */
.full-menu .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    background-color: #f8f8f8;
    padding: 0px;
}

/* .full-menu .dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    font-weight: 100;
} */

.menu-toggle-wrapper {
    position: relative; /* creates stacking context */
    width: 32px; /* consistent width for both */
    height: 32px;
}

/* both icons stacked */
.menu-toggle,
.dummy-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 4px;
    background: white;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    /* hover only works on active one */
    .menu-toggle:hover {
        background-color: #f0f0f0;
    }
}

.menu-toggle:active {
    background-color: #f0f0f0;
}

/* make dummy one non-interactive */
.dummy-icon {
    pointer-events: none;
    /* opacity: 0.3s; */
    opacity: 0;
}

/* optional: keep dummy always the hamburger icon */
.dummy-icon i::before {
    content: "\f0c9"; /* bars icon */
}

.menu-toggle i {
    transition: transform 0.3s ease;
}
.menu-toggle.open i {
    transform: rotate(90deg);
}
