/*################# Font Import and Base Styles ####################*/

/* Import Montserrat font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* Reset and base styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/*################## End Font Import and Base Styles ###############*/

/*################# Header Styling ####################*/

.site-header {
    background-color: #fff; /* White background */
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: relative; /* Ensure proper positioning context */
    z-index: 10; /* Above hero section */
}

.site-header .container-fluid {
    display: flex;
    align-items: center; /* Align logo and menu on the same line */
    padding: 0 20px;
}

/*################## End Header Styling ###############*/

/*################# Logo Styling ####################*/

.logo-area {
    margin-right: 30px; /* Space between logo and menu */
}

.logo-area img {
    max-height: 60px; /* Limit logo height */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align with text */
}

/*################## End Logo Styling ###############*/

/*################# Main Menu Styling ####################*/

.main-menu {
    flex-grow: 1; /* Takes remaining space */
    position: relative; /* Add this to create a positioning context for the toggle */
}

.main-menu .menu-toggle {
    display: none; /* Hidden by default on larger screens */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: #003087; /* Match your theme colors */
    background: none;
    border: none;
    outline: none;
    line-height: 1;
}

.main-menu .menu-toggle i {
    color: #003087; /* Ensure the icon is visible */
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-menu ul li {
    position: relative;
    margin-right: 25px; /* Increased spacing between menu items */
}

.main-menu ul li a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif; /* Use Montserrat font */
    font-weight: 500; /* Medium weight for better readability */
    font-size: 1.1rem; /* Slightly larger text */
    color: #333; /* Base color */
    padding: 10px 15px;
    display: block;
    width: 100%; /* Ensure the <a> fills the <li> */
    cursor: pointer; /* Change cursor on hover */
}

.main-menu ul li:hover {
    background-color: transparent; /* No background change */
}

.main-menu ul li:hover a {
    color: #666; /* Slightly lighter gray for hover */
    opacity: 0.8; /* Subtle opacity change for text only */
}

/* Dropdown styling */
.main-menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF; /* White background */
    border: 1px solid #003087; /* Blue border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 5px 0;
    opacity: 1; /* Ensure submenu container is fully opaque */
}

.main-menu ul li:hover > ul {
    display: block;
}

.main-menu ul li ul li {
    margin-right: 0;
    width: 100%;
    border-bottom: 1px solid #25285B; /* Gold separator */
    opacity: 1; /* Ensure submenu items are fully opaque */
}

.main-menu ul li ul li:last-child {
    border-bottom: none; /* Remove separator for last item */
}

.main-menu ul li ul li a {
    font-family: 'Montserrat', sans-serif; /* Use Montserrat for dropdowns */
    font-weight: 400; /* Lighter weight for dropdown items */
    font-size: 1rem; /* Slightly smaller than parent links */
    padding: 10px 15px;
    color: #333 !important; /* Match parent text color exactly */
    display: block;
    width: 100%; /* Ensure the <a> fills the <li> */
    cursor: pointer; /* Change cursor on hover */
    opacity: 1 !important; /* Ensure text is fully opaque by default, overriding inheritance */
}

.main-menu ul li ul li:hover {
    background-color: #FFF5CC; /* Slightly darker pale gold on hover */
    opacity: 1; /* Ensure background is fully opaque */
}

.main-menu ul li ul li:hover a {
    color: #666 !important; /* Match parent hover color */
    opacity: 0.8; /* Apply opacity only to text on hover */
}

/* Submenu styling (for nested dropdowns) */
.main-menu ul li ul li ul {
    top: 0;
    left: 100%;
    border: 1px solid #003087; /* Blue border for nested submenus */
    opacity: 1; /* Ensure nested submenu is fully opaque */
}

/*################## End Main Menu Styling ###############*/

/*################# Mobile Menu Styling ####################*/

@media (max-width: 767px) {
    /* Remove padding from .container-fluid on mobile to allow the menu to be full-width */
    .site-header .container-fluid {
        padding: 0;
    }

    /* Add padding to the logo area on mobile */
    .logo-area {
        padding-left: 20px;
    }

    .main-menu .menu-toggle {
        display: block !important; /* Ensure toggle button is visible on mobile */
        position: absolute; /* Position it absolutely within .main-menu */
        top: 50%; /* Vertically center */
        right: 20px; /* Move to the right side */
        transform: translateY(-50%); /* Adjust for vertical centering */
    }

    .main-menu nav ul {
        display: none; /* Hide menu by default on mobile */
        flex-direction: column; /* Stack items vertically */
        position: fixed; /* Use fixed to break out of all parent constraints */
        top: 100px; /* Start below the header (adjust this value based on header height) */
        left: 0;
        width: 100vw; /* Use viewport width to ensure full-width */
        background-color: #FFFFFF;
        border: none; /* Remove border for full-width look */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0; /* Remove any margins */
        padding: 0; /* Remove any padding */
    }

    .main-menu nav ul.active {
        display: flex; /* Show menu when toggle is clicked */
    }

    .main-menu nav ul li {
        margin-right: 0;
        width: 100%;
        border-bottom: 1px solid #25285B; /* Gold separator */
    }

    .main-menu nav ul li:last-child {
        border-bottom: none;
    }

    .main-menu nav ul li a {
        padding: 15px 20px; /* Add more padding for touch targets */
        font-size: 1rem;
    }

    .main-menu nav ul li ul {
        display: none; /* Hide submenu by default on mobile */
        position: static; /* Submenu should stack vertically */
        width: 100% !important; /* Force full width, override desktop min-width */
        min-width: 0 !important; /* Remove the desktop min-width */
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0; /* Remove any margins */
        background-color: #F5F5F5; /* Slightly different background for visual hierarchy */
    }

    .main-menu nav ul li ul.active {
        display: block; /* Show submenu when toggled */
    }

    .main-menu nav ul li ul li {
        padding-left: 20px; /* Indent submenu items */
        width: 100% !important; /* Force full width */
        margin: 0; /* Remove any margins */
    }

    .main-menu nav ul li ul li a {
        width: 100% !important; /* Force full width */
        padding: 10px 20px; /* Consistent padding */
    }
}

/*################## End Mobile Menu Styling ###############*/

/*################# Legacy Header Styling ####################*/

.legacy-header {
    display: none; /* Hide legacy blocks by default */
}

/* Show legacy header for admin users (optional) */
body.path-admin .legacy-header,
body.role-administrator .legacy-header {
    display: block; /* Show for admin pages or admin users */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/*################## End Legacy Header Styling ###############*/







/*################# Welcome Block ####################*/

/* Welcome Block Styling */
.welcome-block {
    background: linear-gradient(180deg, rgba(0, 48, 135, 0.05), #FFFFFF);
    padding: 40px 20px;
    margin: 20px 0;
    border-left: 5px solid #25285B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left; /* Changed to left-align */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-block__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #003087;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.welcome-block__title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #25285B;
    position: absolute;
    bottom: -5px;
    left: 0; /* Adjusted for left alignment */
}

.welcome-block__content {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0; /* Adjusted to remove auto-centering */
}

@media (max-width: 767px) {
    .welcome-block {
        padding: 30px 15px;
        margin: 10px 0;
    }

    .welcome-block__title {
        font-size: 2rem;
    }

    .welcome-block__content {
        font-size: 1rem;
    }
}

/*################## End Welcome Block ###############*/

