/* 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 */
}

/* Conference Grid */
.conference-grid {
    display: flex;
    margin: 100px auto;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.conference-item {
    width: 300px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.conference-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain YouTube's aspect ratio */
    object-fit: cover; /* Ensures the image fills the area properly */
    border-radius: 5px;
}

.conference-info {
    padding: 10px 0;
}

.conference-date {
    font-weight: bold;
    color: #0077b5;
    margin: 5px 0;
}

.conference-desc {
    font-size: 14px;
    color: #555;
    margin: 5px 0 15px;
}

.watch-button {
    display: inline-block;
    background-color: #0077b5;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.watch-button:hover {
    background-color: #005f8f;
}

.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;
    }
}
