body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    position: relative; /* Avoid dropdown clipping issues */
}

header {
    background-color: #003366;
    color: white;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    margin: 0;
}

/* Navigation Bar Styling */
nav {
    background-color: #00264d;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    position: relative; /* Ensure proper stacking context */
    z-index: 10; /* Bring nav above other elements */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 15px;
    position: relative; /* Necessary for dropdown positioning */
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #00509e;
    border-radius: 5px;
}

/* Dropdown Menu Styling */
nav ul li ul.dropdown {
    display: none; /* Hidden by default */
    position: absolute; /* Positioned relative to the parent li */
    top: 100%; /* Align just below the parent */
    left: 0;
    background-color: #004080;
    color: white;
    padding: 0.5em 1em;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Ensure it appears above all other elements */
    min-width: 150px; /* Prevent the dropdown from being too narrow */
}

nav ul li ul.dropdown a {
    color: white;
    padding: 0.5em 1em;
    display: block; /* Full-width clickable */
    text-decoration: none;
    transition: background-color 0.3s ease;
}

nav ul li ul.dropdown a:hover {
    background-color: #00509e;
}

/* Show Dropdown on Hover */
nav ul li:hover ul.dropdown {
    display: block; /* Display dropdown when hovering over li */
}

main {
    min-height: 80vh;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: #004080;
}

main p {
    text-align: justify;
    margin-bottom: 1rem;
}

/* Service Pages Styling */
.services-section {
    background-color: #f8f8ff;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.services-section h2 {
    text-align: center;
    color: #004080;
    margin-bottom: 1rem;
}

.services-section p {
    text-align: justify;
    margin-bottom: 1rem;
}

main, .services-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Buttons for Call-to-Action (Optional) */
button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00509e;
}

footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffcc00;
}

@media (max-width: 768px) {
    nav a {
        margin: 0 0.5rem;
        padding: 0.5rem;
    }

    main, .services-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Invisible Link Styling */
.invisible-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: none;
    color: transparent;
}
