/* Universal Box-Sizing for easier responsive design */
*, *::before, *::after {
    box-sizing: border-box;
}

/* General Body Styling */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f8ff;
    color: #333;
    max-width: 100%; /* Ensure body does not exceed viewport width */
    overflow-x: hidden; /* Hide horizontal scrollbar if content overflows */
}

/* Header and Navigation */
header {
    background-color: #40e0d0;
    padding: 1rem;
    color: white;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.language-switcher {
    text-align: right;
    padding: 0.5rem 1rem;
}

.language-switcher a {
    color: #333;
    text-decoration: none;
}

/* Main Content */
main {
    padding: 2rem;
    text-align: center;
}

h1, h2 {
    color: #008080;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

form label {
    margin-top: 1rem;
}

form input,
form textarea {
    width: 80%;
    max-width: 500px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #40e0d0;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: bold;
}

form button:hover {
    background-color: #008080;
}

/* Footer */
footer {
    background-color: #40e0d0;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 0 1rem;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 600px) {
    main {
        padding: 1rem; /* Reduce padding on very small screens */
    }

    form input,
    form textarea {
        width: 90%; /* Make form fields wider on very small screens */
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* News Section */
.news-section {
    text-align: left;
    padding: 2rem;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.news-item h3 {
    margin-top: 0;
    color: #0056b3;
}

/* Styling for expandable news topics */
details {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #008080;
    padding-bottom: 1rem; /* Add some space below the summary text */
}

summary h2 {
    display: inline; /* Keep h2 on the same line as the disclosure triangle */
    margin: 0; /* Remove default h2 margin inside summary */
}

details > div { /* Style the content inside details */
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

