body {
    font-family: 'Cairo', Arial, sans-serif;
    direction: rtl;
    background: #181818;
    color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: #181818;
    border-bottom: 2px solid #ffc107;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0.5rem 0;
}

.logo-img {
    height: 40px;
    margin-left: 8px;
    vertical-align: middle;
}
.logo-text {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.desktop-nav {
    display: none;
}
@media (min-width: 900px) {
    .desktop-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
    background: #222;
    color: #ffc107;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}
.btn-login, .btn-register {
    background: #ffc107;
    color: #181818;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-login:hover, .btn-register:hover {
    background: #ff9800;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
    display: block;
}
@media (min-width: 900px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #181818;
    transition: right 0.3s;
    z-index: 2000;
    overflow-y: auto;
}
.mobile-nav.active {
    right: 0;
}
.mobile-nav-content {
    padding: 2rem 1rem;
}
.close-menu {
    background: none;
    border: none;
    color: #ffc107;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
    float: left;
}
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu li {
    margin-bottom: 1rem;
}
.mobile-link {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.mobile-link:hover {
    background: #222;
    color: #ffc107;
}

.main-content {
    min-height: calc(100vh - 70px);
    padding-top: 0;
}

.main-footer {
    background: #181818;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 2px solid #ffc107;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #ffc107;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-bottom-links a:hover {
    color: #ffc107;
}
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
    }
    .auth-buttons {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }
    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        width: 140px;
        font-size: 0.98rem;
        padding: 0.45rem 0;
        margin-bottom: 0.2rem;
        border-radius: 6px;
        text-align: center;
    }
    .footer-top {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        width: 100%;
        font-size: 1rem;
        padding: 0.5rem 0;
        margin-bottom: 0.3rem;
        border-radius: 8px;
        text-align: center;
    }
    .auth-buttons {
        width: 100%;
        gap: 0.4rem;
    }
}

/* تحسين مظهر أقسام المحتوى (card style) */
.content-section {
    background: #232323;
    border-radius: 14px;
    box-shadow: 0 2px 16px #0002;
    margin-bottom: 2.5rem;
    padding: 2rem 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* تحسين خلفية الحاوية الرئيسية */
@media (min-width: 700px) {
  .container {
      background: #222;
      border-radius: 18px;
      padding: 2.5rem 2rem;
      margin-top: 2rem;
      margin-bottom: 2rem;
      box-shadow: 0 2px 24px #0001;
  }
}

/* تمييز العناوين */
.content-section h2, .hero-section h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

/* تباعد إضافي بين العناصر داخل الأقسام */
.content-section ul, .content-section ol {
    margin-bottom: 1.5rem;
}

/* تحسين مظهر الصور داخل الأقسام */
.content-section img {
    display: block;
    margin: 1.5rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0002;
    max-width: 100%;
    height: auto;
}

/* تحسين تباعد الفقرات */
.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* تحسين مظهر hero-section */
.hero-section {
    background: #232323;
    border-radius: 18px;
    box-shadow: 0 2px 18px #0002;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
} 