body {
    font-family: 'titr', sans-serif;
    margin: 0;
    background: #f0f4f8;
    color: #333;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a h4 {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav h4:hover,
.main-nav h4.active {
    background-color: #00c2ff;
    color: black;
}

.main-nav a.disabled h4 {
    opacity: 0.5;
    cursor: not-allowed;
}

.top-right-info {
    text-align: right;
}

.top-right-info > div {
    font-size: 14px;
    margin-left: 15px;
    display: inline-block;
}

.teaching {
    background: white;
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.teaching.active {
    display: block;
}

.teaching h3 {
    color: #444;
    font-size: 22px;
    margin-bottom: 15px;
}

.teaching p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.teaching a img {
    margin-top: 10px;
    transition: transform 0.3s;
    border-radius: 12px;
    cursor: pointer;
}

.teaching a img:hover {
    transform: scale(1.05);
}

.language-menu button {
    padding: 8px 16px;
    border-radius: 15px;
    background-color: #5e35b1;
    color: white;
    border: none;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.language-menu button:hover {
    background-color: #7e57c2;
}

.marqu h3 {
    color: #222;
    font-weight: bold;
    animation: fadeInDown 1s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        display: none;
        width: 100%;
        text-align: center;
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav a h4 {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}
