/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100vw;
}

/* Navigation Container */
.nav-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    padding: 1rem 3rem;
    background-color: rgb(51, 87, 126);
    /* ✅ ADD THIS */
}


/* Logo Section */
.nav-logo {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.nav-logo img {
    width: 500px;
    height: auto;
    margin-right: 1rem;
}

.nav-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation Links */
.nav-links-container {
    top: 0;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links>.nav-link-item {
    margin: 0 24px;
    position: relative;
}

.nav-links>.nav-link-item>a {
    text-decoration: none;
    display: flex;
    padding: 16px 0;
    color: lch(98.65% 2.07 280.72);
    /* Very light lavender/blue */
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, font-size 0.3s ease;
    align-items: center;
}

.nav-links>.nav-link-item:hover>a {
    color: lch(85% 40 280);
    /* Softer but deeper lavender tone */
    font-size: 1.1rem;
}


/* Chevron-down Icon */
.nav-link-item>a>.bi-chevron-down {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: 0.3s ease;
    pointer-events: none;
}

.nav-link-item:hover>a>.bi-chevron-down {
    transform: rotate(-180deg);
}

/* Dropdown Menu */
.nav-link-item {
    position: relative;
    display: inline-block;
}

.nav-link-item a {
    text-decoration: none;
    color: #000;
    display: block;
}

.nav-link-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgb(248, 246, 243);
    transform: translateY(0);
    transition: 0.3s ease;
    visibility: hidden;
    opacity: 0;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    z-index: 10;
    pointer-events: auto;
}

.nav-link-item:hover .dropdown-menu {
    transform: translateY(8px);
    visibility: visible;
    opacity: 1;
}

/* Dropdown Menu Items */
.dropdown-menu-item {
    list-style: none;
}

.dropdown-menu-item a {
    text-decoration: none;
    display: block;
    color: #2d57d9;
    /* Base: strong blue */
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease, font-size 0.3s ease;
    padding: 10px;
}

/* Enhanced hover effect */
.dropdown-menu-item a:hover {
    color: #1c3fa8;
    /* A richer shade of blue for better visual continuity */
    font-size: 1rem;
    /* Slightly increase font size */
}


/* Hero Container */
.hero-container {
    padding: 2rem 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: justify;
}

.hero-content {
    width: 80%;
    display: flex;
    flex-direction: column;
}

/* Media Query for Small Screens */
@media (max-width: 996px) {

    .nav-logo {
        display: flex;
        justify-content: center;
        /* centers horizontally */
        align-items: center;
        /* centers vertically if needed */
        padding: 1rem 0;
    }

    .nav-logo img {
        width: 300px;
        /* enlarged */
        height: auto;
    }


    .nav-logo h2 {
        font-size: 20px;
    }

    .nav-logo p {
        font-size: 10px;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 3rem;
        background-color: rgb(51, 87, 126);

    }

    .nav-links-container {
        position: absolute;
        right: 0;
        width: 300px;
        height: 100%;
        top: 0;
        overflow-y: auto;
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
        z-index: 999;
        padding: 15px;
        transition: 0.3s ease;
        transform: translateX(100%);
    }

    .nav-links-container.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links>.nav-link-item {
        margin: 0;
    }


    .nav-links>.nav-link-item>a {
        padding: 24px 16px;
        color: #2d57d9;
        border-bottom: 1px solid #0e0404e1;
        display: flex;
        justify-content: space-between;
    }

    .nav-links>.nav-link-item:hover>a {
        color: #1c3fa8;

    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        font-size: 40px;
    }

    .nav-links-container {
        display: none;
    }

    .nav-links-container.active {
        display: block;
    }

    .close-icon {
        display: block;
        cursor: pointer;
        font-size: 40px;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .close-icon {
        z-index: 1000;
        /* Adjust as needed */
    }

}

/* For mobile phones: */
@media (max-width: 600px) {

    .nav-logo {
        display: flex;
        justify-content: center;
        /* centers horizontally */
        align-items: center;
        /* centers vertically if needed */
        padding: 1rem 0;
    }

    .nav-logo img {
        width: 300px;
        /* enlarged */
        height: auto;
    }

    .nav-logo h2 {
        font-size: 16px;
    }

    .nav-logo p {
        font-size: 8px;
    }

    .nav-container {
        position: sticky;
        top: 0;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1rem;
        background-color: rgb(51, 87, 126);

        /* Ensure the background color is set */
        z-index: 1000;
        /* Ensure it stays above other content */
    }

    .nav-links-container {
        position: fixed;
        /* Changed from absolute to fixed */
        right: 0;
        width: 200px;
        height: 100%;
        top: 0;
        overflow: visible;
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
        z-index: 999;
        padding: 8px;
        transition: 0.3s ease;
        transform: translateX(100%);
    }

    .nav-links-container.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links>.nav-link-item {
        margin: 0;
    }

    .nav-links>.nav-link-item>a {
        padding: 16px 10px;
        border-bottom: 1px solid #0e0404e1;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        width: 200px;
        border-radius: 10px;
        overflow: hidden;
        background-color: rgb(248, 246, 243);
        transform: translateY(0);
        transition: 0.3s ease;
        visibility: hidden;
        opacity: 0;
        box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
        z-index: 10;
        pointer-events: auto;
    }

    .dropdown-menu.active {
        display: block;
        visibility: visible;
        opacity: 1;
    }


    .hamburger-menu {
        display: block;
        cursor: pointer;
        font-size: 30px;
    }

    .nav-links-container {
        display: none;
    }

    .nav-links-container.active {
        display: block;
    }

    .close-icon {
        display: block;
        cursor: pointer;
        font-size: 40px;
        position: absolute;
        top: 0;
        right: 10px;
        z-index: 1000;
        /* Adjust as needed */
    }

}


/* Hide hamburger menu on larger screens */
@media (min-width: 997px) {

    .hamburger-menu {
        display: none;
    }

    .close-icon {
        display: none;
    }

    .nav-container {
        height: 200px;
    }
}
