body {
    margin: 0;
    padding: 0;
}

main {
    padding-left: 1rem;
    padding-right: 1rem;
}

h2.section-title {
    text-align: left;
    margin-top: 3rem;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navigation bar styling */
nav {
    background-color: #333333;  /* Dark background - adjust color as needed */
    padding: 1rem;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;  /* Makes items horizontal */
    justify-content: center;  /* Centers items horizontally */
    gap: 2rem;  /* Adds space between items */
}

nav a {
    color: white;  /* Makes link text white */
    text-decoration: none;  /* Removes underline */
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;  /* Smooth color transition for hover effect */
    font-family: "Helvetica", sans-serif;
    font-weight: bold;
}

nav a:hover {
    color: #ddd;  /* Slightly darker white on hover */
    text-decoration: underline;
}

a.no-underline {
    text-decoration: none;
}

a.no-underline:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    text-align: center;
    margin: 2rem;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }

    nav ul {
        gap: 0;
        justify-content: space-around;
        align-items: center;
    }

    nav ul li {
        display: flex;
        align-items: center;
    }

    nav a {
        font-size: 1rem;
        padding: 0.5rem;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    /* Update dropdown styles */
    .dropdown {
        display: flex;
        align-items: center;
    }
}

/* For very small screens */
@media (max-width: 350px) {
    nav ul {
        flex-direction: column;  /* Stack vertically */
        align-items: center;
        gap: 0.5rem;
    }
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    padding: 0.5rem 1rem;
    display: block;
    text-align: left;
    font-size: 1rem;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile adjustments for dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        display: none !important;  /* Force hide dropdown on mobile */
    }
    
    /* Make the dropdown parent behave like a normal link */
    .dropdown {
        position: static;
    }
    
    .dropdown > a {
        display: block;  /* Make the link fill its container */
    }
}
