.navigation-bar {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background-color: #3f3f3f;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin-top: 100px;
    margin-bottom: 50px;
    width: calc(100% - 10%);
    max-width: calc(100vw - 10vw);
    z-index: 1; /* Add this line */
    overflow: visible; /* Add this line */
}

.buttons-container {
    width: 99%;
    display: flex;
    overflow: hidden;
    position: relative;
}

.nav-button {
    flex: 1;
    text-decoration: none;
    color: #98662e;
    background-color: #2f2f2f;
    padding: 10px 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
    box-sizing: border-box; /* Ensure padding and border are included in total width */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Optional: Center the text horizontally as well */
}

.nav-button:visited {
    color: #98662e;
}

.nav-button:hover {
    background-color: #98662e;
    color: #2f2f2f;
}

.nav-button:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.nav-button:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-button:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    flex: 1; /* Make dropdown the same size as other buttons */
}

.nav-dropdown .nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box; /* Ensure padding and border are included in total width */
}

/* Apply rounded corners only to the right side of the rightmost dropdown */
.nav-dropdown:last-of-type .nav-button {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0; /* Remove top-left radius */
    border-bottom-left-radius: 0; /* Remove bottom-left radius */
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3f3f3f;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 0;
}

.dropdown-content a {
    color: #D3D3D3;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #98662e;
    color: #2f2f2f;
}

/* Dropdown button adjustment */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box; /* Ensure padding and border are included in total width */
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

/* Apply rounded corners only to the right side of the rightmost dropdown */
.nav-dropdown:last-of-type .nav-button {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Remove border radius from other dropdowns */
.nav-dropdown:not(:last-of-type) .nav-button {
    border-radius: 0;
}

.dropdown-option:visited {
    color: white;
}

.section {
    margin: 20px auto;
    background-color: #3f3f3f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: auto;
    width: calc(100% - 10%);
    max-width: calc(100vw - 10vw);
}

.section-image {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    width: 150px;
    height: auto;
    clear: both;
}

.section h2 {
    color: #98662e;
    margin-bottom: 15px;
    border-bottom: 2px solid #98662e;
    padding-bottom: 5px;
}

.section p, .section ul {
    color: #D3D3D3;
    line-height: 1.6;
    margin-bottom: 10px;
}

.section ul {
    list-style-type: none;
    padding-left: 20px;
}

.section ul li {
    margin-bottom: 5px;
}

.section ul li ul {
    margin-top: 5px;
    padding-left: 20px;
}

.section ul li ul li {
    margin-bottom: 3px;
}

.section strong {
    color: #98662e;
}

.section ul li:before {
    content: "\2022";
    color: #98662e;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.container {
    display: grid;
    grid-template-columns: 9fr 1fr;
    column-gap: 20px;
}

.image-backdrop {
    margin-top: 20px;
    background-color: #2f2f2f;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure container takes full width */
}

.image-backdrop img {
    height: auto;
    max-width: 100%; /* Ensure image scales within the container */
    display: block;
    margin: auto;
}

.subsection {
    margin-top: 20px;
    background-color: #2f2f2f;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4); 
}

.subsection h3 {
    color: #98662e;
    margin-bottom: 10px;
    border-bottom: 1px solid #865b29; 
    padding-bottom: 5px;
}

.sub-subsection {
    margin-top: 15px;
    background-color: #3f3f3f; 
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); 
}

.sub-subsection strong {
    color: #98662e;
}

.sub-subsection ul {
    list-style-type: none;
    padding-left: 20px;
}

.sub-subsection ul li {
    margin-bottom: 5px;
}

.sub-subsection ul li:before {
    content: "\2022"; 
    color: #98662e;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}