body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #2F4F4F; /* Deep Muted Teal/Forest Green */
    color: #FFFFFF; /* White text for general body content for readability */
}

header {
    background: #2A5B5A; /* Slightly lighter teal for header differentiation */
    color: #FFD700; /* Gold */
    padding: 1rem 20px; /* Added padding for logo spacing */
    text-align: center;
    border-bottom: #FFD700 3px solid; /* Gold */
    display: flex; /* For logo alignment */
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Space out logo, title/subtitle, lang-switcher */
}

#header-logo {
    max-height: 70px; /* Adjust as needed */
    margin-right: 20px;
}

.header-content { /* Wrapper for title and subtitle */
    flex-grow: 1; /* Allows title block to take available space */
    text-align: center; /* Keep title centered */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    /* color: #FFD700; /* Gold */ /* Removed, inherits from header */
}

header p {
    font-size: 1.1rem;
    color: #FFFFFF; /* White for subtitle for differentiation */
}

.language-switcher {
    text-align: right;
    padding: 0 20px 10px 0;
}

.language-switcher button {
    background: #2F4F4F; /* Dark Teal background for inactive button */
    color: #FFD700; /* Gold text for inactive button */
    border: 1px solid #FFD700; /* Gold border for inactive button */
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 5px;
}

.language-switcher button:hover {
    background: #2A5B5A; /* Lighter Teal for hover on inactive */
    color: #FFFFFF; /* White text for hover */
    border: 1px solid #FFFFFF; /* White border for hover */
}

nav {
    background: #2A5B5A; /* Matching header background */
    color: #FFD700; /* Gold */
    padding: 0.5rem 0;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    /* color: #FFD700; /* Gold */ /* Removed, inherits from nav */
    text-decoration: none;
    font-size: 1.1rem;
}

nav a:hover {
    color: #FFFFFF; /* White for hover */
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

section {
    background: #FFFFFF; /* Keep section background white for readability of content */
    color: #333333; /* Dark grey for section text, good contrast on white */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #FFD700; /* Gold border for sections */
    box-shadow: 0 0 10px rgba(255,215,0,0.2); /* Subtle gold shadow */
}

section h2 {
    color: #2A5B5A; /* Teal for section headers */
    border-bottom: 2px solid #FFD700; /* Gold */
    padding-bottom: 10px;
    margin-top: 0;
}

section h3 {
    color: #2A5B5A; /* Teal for sub-headers */
    margin-top: 15px;
}

ul {
    list-style: disc;
    padding-left: 20px;
    /* color will be inherited from section or body, which is #333 or #FFF respectively.
       If sections are white background, this will be #333, which is fine. */
}

li {
    margin-bottom: 8px;
}

strong { /* For inline strong elements, gold might be too much, use a contrasting dark color */
    color: #2A5B5A; /* Teal, or could be a darker shade of body text if needed */
}

footer {
    text-align: center;
    padding: 20px;
    background: #2A5B5A; /* Matching header/nav background */
    color: #FFD700; /* Gold */
    margin-top: 20px;
    border-top: 3px solid #FFD700; /* Gold border top for footer */
}

.language-switcher button.active {
    background: #FFD700; /* Gold background for active button */
    color: #2F4F4F; /* Dark Teal text for active button */
    font-weight: bold;
    border: 1px solid #2F4F4F; /* Dark Teal border for active button */
}

/* Styles for definition lists */
dl {
    padding: 0;
    margin: 10px 0;
}

dt {
    font-weight: bold;
    color: #2A5B5A; /* Teal for definition terms, consistent with section h3 */
    margin-top: 10px;
}

dd {
    margin-left: 20px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #FFD700; /* Gold border for definition descriptions */
}

#image-gallery img {
    width: 75%;
    height: auto;
    display: block; /* To remove extra space below the image */
    margin-bottom: 20px; /* Optional: if you want some space below the image gallery */
}

/* Responsive Design */
@media(max-width: 768px) {
    header {
        flex-direction: column;
        padding-top: 0.5rem; /* Reduce padding a bit for stacked view */
        padding-bottom: 0.5rem;
    }

    #header-logo {
        margin-right: 0; /* Remove right margin when stacked */
        margin-bottom: 10px; /* Add bottom margin when stacked */
        max-height: 60px; /* Slightly smaller logo for mobile */
    }

    .header-content {
        text-align: center; /* Ensure it's centered if flex-grow behaves differently */
        margin-bottom: 10px; /* Space below title/subtitle block */
    }

    header h1 {
        font-size: 2rem; /* Already in existing query, kept for clarity */
    }

    header p {
        font-size: 1rem; /* Slightly smaller subtitle for mobile */
    }

    .language-switcher {
        text-align: center; /* Center buttons when stacked */
        padding: 5px 0 0 0; /* Adjust padding for stacked layout */
        width: 100%; /* Allow it to take full width for centering */
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    main {
        padding: 10px;
    }

    section {
        padding: 15px;
    }
}
