/* --- Header & Navigation (Corrected & Enhanced Colors) --- */
.main-header {
    /* THE FIX: Changed background to match the admin panel */
    background-color: #343a40; /* Dark admin background */
    color: #fff; /* Default text color is now white */
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    /* THE FIX: Changed color to white to be visible on the dark background */
    color: #fff;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    list-style: none;
    direction: rtl;
}
.nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    /* THE FIX: Changed text color to a light grey to match the admin panel */
    color: #f8f9fa;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-menu li a:hover {
    /* THE FIX: Changed hover effect to match the admin panel's blue button */
    background-color: var(--primary-color);
    color: #fff;
}
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}```

---

### **The Complete, Correct `/style.css` File (Recommended)**

To avoid any mistakes, I strongly recommend replacing your entire frontend `/style.css` file with this complete and final version. It includes the navbar fix above and preserves all the other working styles.

```css
/* --- Global & Typography --- */
:root {
    --primary-color: #007bff;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --header-height: 70px;
    --border-color: #dee2e6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', 'Roboto', sans-serif; line-height: 1.6; background-color: #f8f9fa; color: var(--dark-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navigation (Corrected & Enhanced Colors) --- */
.main-header {
    background-color: #343a40; /* Dark admin background */
    color: #fff; /* Default text color is now white */
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff; /* Changed color to white */
    text-decoration: none;
}
.nav-menu {
    display: flex;
    list-style: none;
    direction: rtl;
}
.nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: #f8f9fa; /* Light grey text */
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-menu li a:hover {
    background-color: var(--primary-color); /* Blue hover */
    color: #fff;
}
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Main Content & Hero --- */
main { padding: 40px 0; }
.hero { text-align: center; padding: 30px; background-color: #fff; border-radius: 8px; margin-bottom: 40px; border: 1px solid var(--border-color); }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; color: #6c757d; }

/* --- Public Thumbnails Grid --- */
.public-thumbnails-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.no-lessons-public { font-size: 1.2rem; color: #6c757d; text-align: center; grid-column: 1 / -1; }
.public-thumbnail { background-color: #fff; border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.public-thumbnail:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.thumbnail-image-wrapper { height: 160px; width: 100%; background-color: #e9ecef; }
.thumbnail-image-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.public-thumbnail .caption { padding: 20px; flex-grow: 1; text-align: center; }
.public-thumbnail .title-ar { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; }
.public-thumbnail .title-ru { font-size: 1.1rem; color: #6c757d; }
.public-thumbnail .title-main { font-size: 1.3rem; font-weight: bold; }


/* --- Lesson, Static Page, & Iframe Content --- */
.lesson-content-wrapper, .static-page-content { background-color: #fff; padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); }
.lesson-content-wrapper { display: flex; gap: 40px; }
.lesson-content-wrapper.full-width { display: block; }
.lesson-section { flex: 1; min-width: 0; }
.lesson-title, .static-page-content h1, .page-header-public h1 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary-color); }
.page-header-public { text-align: center; margin-bottom: 30px; }
.lesson-body, .static-page-content .page-body { font-size: 1.1rem; line-height: 1.8; }
.iframe-container { position: relative; width: 100%; height: 90vh; overflow: hidden; border: 1px solid var(--border-color); border-radius: 8px; background-color: #f1f1f1; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }


/* --- Interactive Form & Quiz Results --- */
.interactive-form { border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; margin: 30px 0; background-color: #fff; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: bold; margin-bottom: 8px; }
.quiz-results { text-align: center; }
.quiz-results .score { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); margin: 10px 0 20px 0; }

/* --- 3-Column Image Layout --- */
.image-center-layout-table { width: 100%; border-collapse: collapse; border: 1px dashed #ccc; margin: 1.5em 0; direction: ltr; }
.image-center-layout-table td { vertical-align: middle !important; text-align: center !important; border: none !important; padding: 10px !important; }
.image-center-layout-table img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* --- Footer --- */
.main-footer { background: var(--dark-color); color: #fff; text-align: center; padding: 20px 0; margin-top: 40px; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .lesson-content-wrapper { flex-direction: column; }
    .menu-toggle { display: block; }
    .main-nav { position: relative; }
    .nav-menu { display: none; flex-direction: column; direction: ltr; position: absolute; top: 50px; right: 0; width: 250px; background-color: #fff; border: 1px solid #ddd; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu li a { border-bottom: 1px solid #f0f0f0; }
}
@media (max-width: 768px) {
    .hero h1, .lesson-title, .static-page-content h1, .page-header-public h1 { font-size: 1.8rem; }
    .lesson-content-wrapper, .static-page-content { padding: 20px; }
    .image-center-layout-table td.text-cell, .image-center-layout-table td.image-cell { display: block; width: 100% !important; }
}