/* General Website Design */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
}


/* Main Container (Contains Sidebar and Content/Footer Section) */
.main-container {
    display: flex; /* Align sidebar and content in a row */
    gap: 20px; /* Space between the sidebar and content */
    width: 100%;
    margin: 0 auto;
    margin-top: 100px; /* Add margin-top to push the content down below the fixed header and nav */
}

/* logo animation */

@keyframes pulse {
  0%, 100% {
    transform: scale(1); /* Normal size */
  }
  50% {
    transform: scale(1.1); /* Slightly larger */
  }
}

.logo img {
  animation: pulse 2s infinite; /* Apply the pulse animation */
}



/* Sidebar Section (Container 1) */
.sidebar {
    flex: 0 0 25%; /* Sidebar takes 30% of the container's width */
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Content and Footer Section (Container 2) */
.content-footer-container {
    flex: 1; /* Content and footer take the remaining 70% width */
    display: flex;
    flex-direction: column; /* Align content and footer vertically */
}

/* Content Section */
.content {
    padding: 50px 40px 30px 40px; /* 50px gap from top, 30px gap from bottom */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 90px;
    margin-right: 90px;
    margin-top: 70px;
    height: auto;
    overflow-y: auto;
}

/* Top Bar */
.top-bar {
    height: 12px;
    background-color: #00509e;
}

/* Header Section */
/* Add this to your CSS */



.header {
    padding: 15px 80px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
   background-color: #fff;
    z-index: 100; /* Ensure header stays on top of the content */
}



/* Align logo on the right side and menu toggle on the left side */
.header-top {
    display: flex;
    justify-content: space-between; /* Space between logo and toggle button */
    align-items: center; /* Align both vertically */
}

/* Logo styles */
.logo {
    flex: 1;
    text-align: left; /* Align logo to the right */
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Menu toggle button styling */
.menu-toggle {
    background-color: transparent;
    color: black;
    font-size: 30px;
    padding: 15px;
    border: none;
    cursor: pointer;
    position: absolute; /* Absolute positioning */
    right: 20px; /* Align to the left */
    z-index: 9999;
}



/* Navigation Bar */
.nav-bar {
    background-color: #00509e;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;          /* Prevent the bar itself from ever wrapping */
    padding: 6px 12px;          /* Reduced vertical padding to keep bar slim */
    position: fixed;
    top: 80px; /* Set below the header */
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 99; /* Just below the header */
    overflow: visible;           /* Clip anything that overflows rather than push to 2nd line */
}

/* Navigation links */
.nav-links {
    padding: 0 8px;             /* Tighter horizontal padding */
    display: flex;
    flex: 1;                    /* Fill all remaining space after the logo */
    flex-wrap: nowrap;          /* Hard-lock to single row */
    align-items: center;
    gap: 0;
    white-space: nowrap;
    overflow: visible;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin-right: 10px;         /* Tighter spacing between links */
    font-size: 12.5px;          /* Slightly smaller to gain horizontal room */
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-bar a:hover {
    text-decoration: underline;
}

/* Tools Dropdown Menu in Navigation Bar */
.nav-bar .nav-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-bar .nav-dropdown-btn {
    color: white;
    background: transparent;
    border: none;
    font-size: 12.5px;          /* Match link font size */
    cursor: pointer;
    padding: 4px 0;
    margin-right: 10px;         /* Match link spacing */
    font-family: inherit;
    white-space: nowrap;
}

.nav-bar .nav-dropdown-btn:hover,
.nav-bar .nav-dropdown-btn:focus {
    text-decoration: underline;
    background: transparent;
    outline: none;
}

.nav-bar .nav-dropdown-btn::after {
    content: ' ▼';
    font-size: 8px;
    margin-left: 3px;
}

/* Dropdown content - hidden by default */
.nav-bar .nav-dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 8px 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Show dropdown on hover OR when active class is present */
.nav-bar .nav-dropdown:hover .nav-dropdown-content,
.nav-bar .nav-dropdown.active .nav-dropdown-content,
.nav-bar .nav-dropdown.open .nav-dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Dropdown links */
.nav-bar .nav-dropdown-content a {
    color: #333;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #e8e8e8;
}

.nav-bar .nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-bar .nav-dropdown-content a:hover,
.nav-bar .nav-dropdown-content a:focus {
    background-color: #f0f0f0;
    color: #00509e;
    text-decoration: none;
}

.nav-bar .nav-dropdown:hover .nav-dropdown-btn {
    text-decoration: underline;
}

/* General Styling for Menu and Submenu Items */
.menu, .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Item Styling */
.menu-item {
    position: relative;
    border-top: 1px solid #ddd;
    padding: 12px 20px;
    color: #333;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Remove underline from sub-menu's menu item */
.sub-menu .menu-item a {
    text-decoration: none; /* Remove underline from sub-menu links */
}

/* Change color of menu-item inside sub-menu to black */
.sub-menu .menu-item a, .sub-menu .menu-item {
    color: black !important; /* Ensure that both <a> and <li> text are black */
}

/* Selected state for sub-menu item */
.sub-menu .menu-item.selected {
    background-color: #ffeb3b; /* Light yellow background for selected sub-menu item */
    color: black; /* Black text color */
}

/* Hover Effect for Menu Items */
.menu-item:hover, .sub-menu .menu-item:hover {
    background-color: #e0e0e0; /* Light grey background on hover */
}

/* Cursor for menu items */
.menu-item, .sub-menu .menu-item {
    cursor: pointer;
}

button {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #0056b3; /* Darker shade on hover */
  transform: scale(1.05); /* Slightly enlarge */
}

button:active {
  transform: scale(0.95); /* Slightly shrink on click */
}


/* Dropdown Button Layout */
.menu-item-has-children > a {
    display: flex;
    justify-content: space-between; /* Space between text and icon */
    align-items: center; /* Vertically center the text and icon */
    color: #333;
    text-decoration: none;
    padding-left: 15px; /* Add some gap from left side */
    padding-right: 20px; /* Adjust padding to reduce gap from the right */
    position: relative; /* To allow positioning of the dropdown icon */
}

/* Dropdown Icon Styling */
.menu-item-has-children > a::after {
    content: "▼"; /* You can replace this with an icon */
    font-size: 14px;
    color: #333;
    margin-left: 10px; /* Space between text and the icon */
}

/* Description Styling for menu-item-description */
.menu-item-description {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
    font-weight: normal;
    display: block; /* Ensure it's on a new line below the menu-item text */
    padding-left: 15px; /* Add gap to align properly with menu-item text */
}

/* Remove Vertical Line Inside Dropdown */
.sub-menu .menu-item {
    border-left: none; /* Remove the vertical line */
}

/* Styling for Submenus */
.sub-menu {
    display: none;
    padding-left: 20px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Show Submenu When Open */
.menu-item-has-children.open .sub-menu {
    display: block;
    max-height: 500px;
    padding: 12px 0;
}

/* Footer Section */






.footer {
    background-color: #f9f9f9;
    padding: 40px 80px;
    text-align: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 90px;
    margin-right: 90px;
    margin-top: 50px;
	margin-bottom: 50px;
}

/* Footer Layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer Logo Styling */
.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

/* Footer Social Links */
.footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.footer-bottom li {
    margin: 0 5px;
}

/* Footer Social Links */
.footer-bottom .loading-text {
    display: inline-block;
    width: 100px;
    height: 20px;
    background-color: #ccc;
    border-radius: 5px;
}

/* Footer Learn More Button */
.learn-more-button {
    background-color: #00509e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.learn-more-button:hover {
    background-color: #003f73;
}
.nav-bar .nav-logo {
    display: none; /* Hidden by default */
    margin: 0 auto; /* Center-align the logo */
    text-align: center; /* Ensure proper alignment */
    padding: 10px 0; /* Adjust padding to control spacing */
}

.nav-bar .nav-logo img {
    max-width: 120px; /* Constrain logo size by default */
    height: auto;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Adjust Sidebar to 100% width for tablets */
    .main-container {
        flex-direction: column;
        gap: 0;
        margin-top: 80px; /* To account for fixed header and nav */
    }

    .sidebar {
        flex: 0 0 100%;
        height: auto;
    }
    .nav-bar .nav-logo {
        display: block; /* Display logo on mobile */
        margin-bottom: 10px; /* Reduce gap between logo and menu items */
    }

    .content-footer-container {
        margin-top: 20px;
    }

    .content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .footer {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 30px;
    }

    .nav-bar {
        top: 120px; /* Move below the header */
        overflow-x: auto;   /* Allow scroll on tablets before going full mobile */
        overflow-y: hidden;
    }

    .nav-links {
        padding: 0 8px;
    }

    .nav-bar a {
        font-size: 13px;
    }
}



/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Adjust top bar height and navigation for smaller screens */
    .top-bar {
        height: 10px;
    }

    .header {
        padding: 10px 20px;
    }
    .nav-bar .nav-logo {
    text-align: center;
    margin-bottom: 20px;
    }
    
    .nav-bar .nav-logo img {
        width: 120px; /* Adjust width as needed */
        height: auto;
        display: inline-block;
    }

    .nav-bar {
        top: 110px;
        padding: 10px;
    }

    .nav-links {
        padding: 0 10px;
    }

    .main-container {
        flex-direction: column;
		margin-right: 30px;
		margin-top: 30px;
        
    }

    .sidebar {
        flex: 0 0 100%;
        height: auto;
    }

    .content-footer-container {
        margin-top: 10px;
    }

    .content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .footer {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 20px;
    }

    .footer-container {
        display: block;
        text-align: center;
    }

    .footer-logo {
        width: 120px;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid black;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

td {
    vertical-align: top;
}
