/* General Styling */
body {
    background-color: #f4f4f4;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navigation Menu */
.top-menu {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.top-menu ul li {
    margin: 0 20px;
}

.top-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.top-menu ul li a:hover {
    background-color: #0077b5;
    color: white;
}

/* Language Switcher Styling */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 5px ;
}

.language-switcher img {
    width: 30px; /* Adjust flag size */
    height: 20px;
    margin: 0 5px; /* Space between flags */
    cursor: pointer;
    border: 1px solid #ccc; /* Optional border */
    border-radius: 3px; /* Optional rounded corners */
}

/* Teaching Section */
/* Container for Teaching Page */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

/* Teaching Items */
.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.teaching-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    gap: 15px; /* Space between logo and text */
}

.school-logo {
    width: 150px;  /* Adjust the size as needed */
    height: 50px;
}

.teaching-info {
    display: flex;
    flex-direction: row;  /* Arrange items in a row */
    justify-content: space-between; /* Push subject to the right */
    align-items: center; /* Align items vertically */
    width: 100%; /* Ensure full width */
}

.course-title {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

.course-details {
    display: flex;
    flex-direction: column;
}

.subject {
    color: #555;
    display: flex;
    font-style: italic;
    text-align: right;
    white-space: nowrap; /* Prevents wrapping */
}

.coauthor {
    display: block;
    color: #888;
    margin-top: 5px;
    font-size: 14px;
}

.menu-toggle {
    display:none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .top-menu {
        position: relative;
    }

    .top-menu ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .top-menu ul.show {
        display: flex; /* Show menu when active */
    }

    .top-menu li {
        text-align: center;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        padding: 10px;
    }
}
