:root {
    --background-color: #fff;
    --text-color: #333;
    --link-color: #0066cc;
    --header-background: #f0f0f0;
    --footer-background: #f0f0f0;
    --section-background: #ffffff;
    --border-color: #ccc;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

.dark-mode {
    --background-color: #333;
    --text-color: #f0f0f0;
    --link-color: #4da6ff;
    --header-background: #555;
    --footer-background: #555;
    --section-background: #444;
    --border-color: #666;
}

header {
    background-color: var(--header-background);
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Clearfix */
}

nav ul li {
    float: left; /* Use float for navigation items */
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    transition: color 0.3s ease;
    display: block; /* Make the link a block element for better clicking area */
    padding: 10px 0; /* Add some padding for spacing */
}

nav a:hover {
    color: #004080;
}

.dark-mode nav a:hover {
    color: #80bfff;
}

main {
    padding: 2em 1em;
    max-width: 1000px;
    margin: auto;
}

section {
    background-color: var(--section-background);
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

h2, h3 {
    color: var(--text-color);
}

footer {
    background-color: var(--footer-background);
    text-align: center;
    padding: 1em;
    margin-top: 2em;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

#theme-toggle {
    margin-top: 10px;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--header-background);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle:hover {
    opacity: 0.8;
}

/* Google Translate Styles */
.goog-te-combo {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--section-background);
    color: var(--text-color);
    margin-left: 20px;
}

.goog-te-gadget {
    font-family: sans-serif !important;
    font-size: 1rem !important;
}

/* Basic responsiveness */
@media (max-width: 768px) {
    nav ul li {
        float: none; /* Disable float on smaller screens */
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 1em;
    }

    #theme-toggle {
        margin-top: 5px;
    }
}

/* Student Photos Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    margin-top: 1.5em;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Ensures images cover the area without distortion */
}
