/* ===== Reset بعض الخصائص الأساسية ===== */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    background-color: #f6f6f6;
    color: #202122;
    direction: rtl;
    text-align: right;
}

/* ===== Header ===== */
header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #d3d3d3;
    padding: 20px 25px;
}

header h1 {
    font-size: 28px;
    color: #202122;
}

header p {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* ===== Main content ===== */
main {
    max-width: 1000px;
    margin: 25px auto;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #d3d3d3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===== Sections ===== */
h2 {
    font-size: 22px;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 6px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0645ad; /* لون يشبه روابط ويكيبيديا */
}

section p, section ul {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 16px;
}

/* ===== Lists ===== */
ul {
    padding-right: 20px;
    list-style-type: disc;
}

li {
    margin-bottom: 6px;
}

/* ===== Aside / Table of contents ===== */
aside {
    float: right;
    width: 220px;
    margin-left: 25px;
    margin-bottom: 25px;
    font-size: 14px;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
}

aside h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #202122;
}

aside ul {
    list-style-type: none;
    padding-right: 0;
}

aside a {
    text-decoration: none;
    color: #0645ad;
    transition: color 0.3s ease;
}

aside a:hover {
    text-decoration: underline;
    color: #0b0080;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    margin-top: 35px;
    border-top: 1px solid #d3d3d3;
    font-size: 14px;
    color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    aside {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
}

