@font-face {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 16px;
}
*::selection {
    color: #1f1f23;
    background-color: #ffdd00;
}
*::target-text {
    color: #ffffff;
    background-color: #1f1f23;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0rem;
    color: #C0C0C0;
    line-height: 1.5;
    tab-size: 4;
    background-color: #0B0C10;
    margin: 0 2rem 0 0;
    margin-inline-end: 16rem;
    min-width: 280px;
    max-width: 980px;
}
body.preview {
    margin: 1rem;
    max-width: none;
}
p {
    margin: 1rem 0rem;
}
h1 {
    font-size: 1.6em;
    font-weight: bold;
    margin: 1em 0em;
    padding: 0em;
    text-shadow: -5px 0px 20px rgb(176 151 150 / 74%);
}
h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1em 0em;
    padding: 0em;
    text-shadow: -5px 0px 20px rgb(176 151 150 / 74%);
}
#sidebar > h1,
#sidebar > h2 {
    font-size: 1.9em;
}
h2.page_title {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ebedec;
}
h2.archive {
    margin: 2rem 0rem 0rem 0rem;
}
h2.menu_toggle {
    display: none;
}
h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 1em 0em;
    padding: 0em;
    text-shadow: -5px 0px 20px rgb(176 151 150 / 74%);
}
h3.archive {
    font-size: 1.33em;
    text-align: center;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ebedec;
}
* + h3.article_label {
    margin-right: 1rem;
    
}
h4, h5, h6 {
    font-size: 1em;
    font-weight: bold;
    margin: 1em 0em;
    padding: 0em;
    text-shadow: -5px 0px 20px rgb(176 151 150 / 74%);
}
sup, sub {
    line-height: 1;
    font-size: 0.75em;
}
em, dfn, cite {
    font: inherit;
    font-style: italic;
}
strong {
    font: inherit;
    font-weight: bold;
}
address {
    font: inherit;
}
small {
    font-weight: normal;
    font-size: 0.75em;
}
mark {
    color: #1f1f23;
    background-color: #ffdd00;
}
del {
    font: inherit;
    text-decoration: line-through;
}
figure, blockquote {
    margin: 1rem;
    font: inherit;
    font-size: 1rem;
    page-break-inside: avoid;
}
blockquote {
    font-style: italic;
}
figcaption {
    font-size: 0.75em;
    margin: 1rem 0rem;
}
pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85em;
    background-color: #f2f1f0;
    margin: 1rem 0rem;
    overflow-x: auto;
    white-space: pre;
}
code {
    font-family: "Cousine webfont", monospace;
    font-size: 0.85em;
    background-color: #f2f1f0;
    padding: 0.125em 0.25em 0em 0.25em;
    vertical-align: bottom;
    white-space: break-spaces;
}
pre > code {
    font-size: 0.85rem;
    display: block;
    padding: 0.5rem;
    white-space: inherit;
}
hr {
    width: 100%;
    clear: both;
    border: none;
    border-top: 1px solid #ebedec;
    margin: 1em 0em;
}
hr:last-child,
hr + hr {
    display: none;
}
ul,
ol.comments ul {
    list-style: disc outside;
    margin: 1em 0em;
    margin-inline-start: 2em;
    padding: 0em;
}
ul ul,
ol.comments ul ul {
    list-style-type: circle;
}
ol,
ol.comments ol {
    list-style: decimal outside;
    margin: 1em 0em;
    margin-inline-start: 2em;
    padding: 0em;
}
ol ol,
ol.comments ol ol {
    list-style-type: lower-latin;
}
html[lang="ar"] ol ol,
html[lang="ar"] ol.comments ol ol {
    list-style-type: arabic-indic;
}
html[lang="he"] ol ol,
html[lang="he"] ol.comments ol ol {
    list-style-type: hebrew;
}
li {
    margin: 0em;
    padding: 0em;
}
dl {
    list-style: none;
    margin: 1em 0em;
}
dl dt {
    font-weight: bold;
    margin: 0em;
    padding: 0em;
}
dl dd {
    margin: 0em;
    padding: 0em;
    margin-inline-start: 2em;
}
ul.navigation {
    list-style: none;
    box-sizing: border-box;
    margin: 0rem 0rem 2rem 0rem;
    padding: 0em;
    border: 1px solid #c6ccc8;
    border-left: none;
    border-right: none;
}
ul.navigation > li {
    box-sizing: border-box;
    display: block;
    padding: 0.67em 0em;
    margin: 0em;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #d2d9d4;
}
ul.navigation > li:last-child {
    border-bottom: none;
}
ul.sidebar > li {
    text-align: start;
    font-size: 0.75em;
}
ul.archive {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
    grid-auto-flow: row;
    gap: 1rem;
    margin: 1rem 0rem 0rem 0rem;
}
ul.archive > li {
    margin: 0em;
}
ol.pingbacks {
    list-style: none;
    margin: 0rem;
    padding: 2rem;
}
ol.comments {
    list-style: none;
    padding: 0em;
    margin: 0em;
}
ol.comments > li {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0em;
    padding: 2rem 2rem 0rem 2rem;
    border-bottom: 1px solid #c6ccc8;
}
ol.comments > li:last-child {
    border-bottom: none;
}
ol.comments > li#comment_shim {
    display: none;
}
ol.comments > li.comment_form {
    padding: 2rem;
    background-color: #000000;
}
div#main > details {
    display: block;
    box-sizing: border-box;
    background-color: #ffffff;
    margin: 0rem 0rem 2rem 0rem;
    padding: 0em;
    border: 1px solid #c6ccc8;
    border-radius: 0.5em;
}
div#main > details > summary {
    box-sizing: border-box;
    margin: 0.5rem 2rem;
    cursor: pointer;
    list-style-position: outside;
}
div#main > details > article {
    display: block;
    padding: 2rem;
    margin: 0em;
    border-top: 1px solid #d2d9d4;
}
table {
    border-collapse: collapse;
    border-spacing: 0em;
    margin: 0em 0em 1em 0em;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

table th, table td {
    text-align: start;
    padding: 0.5em;
    font: inherit;
    border: 1px solid #b09797;
    border-rade
    vertical-align: middle;
    white-space: normal; /* السماح بلف النص */
    overflow-wrap: break-word; /* تقسيم النص عند الحاجة دون تقطيع الكلمات */
    word-break: keep-all; /* يمنع تقسيم الحروف بشكل خاطئ */
}

table th {
    font-weight: bold;
    background-color: #161B22;
    color: #ffffff;
}

/* تحسين التجاوب عند تصغير الشاشة */
@media screen and (max-width: 768px) {
    table {
        font-size: 0.85em; /* تصغير النص */
    }

    table th, table td {
        padding: 0.3em; /* تقليل التباعد بين الخلايا */
    }
}

form, fieldset {
    margin: 0em;
    padding: 0em;
    border: none;
}
form.search_box {
    display: block;
    position: relative;
    width: 12em;
    margin-bottom: 2rem;
}
form.comment_edit {
    width: 100%;
    background-color: transparent;
    margin-bottom: 0em;
    padding: 0rem 0rem 2rem 0rem;
    border: none;
}
select[disabled],
textarea[disabled],
input[disabled],
button[disabled], {
    cursor: not-allowed;
    opacity: 0.33;
}
select, input {
    box-sizing: border-box;
    display: block;
    width: 320px;
    margin: 0.5em 0em;
    padding: 0.5em;
    background: none;
    text-align: start;
    font: inherit;
    font-size: inherit;
    color: #b09797;
    background-color: #000000;
    border: 1px solid #c6ccc8;
    border-radius: 0em;
}
html[dir="ltr"] select {
    appearance: none;
    padding-right: 1.5em;
    background-image: url(../images/select.svg);
    background-size: 1rem;
    background-position: center right 0.25em;
    background-repeat: no-repeat;
}
html[dir="rtl"] select {
    appearance: none;
    padding-left: 1.5em;
    background-image: url(../images/select.svg);
    background-size: 1rem;
    background-position: center left 0.25em;
    background-repeat: no-repeat;
}
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    padding: 0em;
}
input[type="radio"] {
    border-radius: 50%;
}
input[type="checkbox"]:checked {
    background-image: url(../images/checkbox.svg);
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
}
input[type="radio"]:checked {
    background-image: url(../images/radio.svg);
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
}
select:focus, input:focus {
    background-color: #161B22;
    border: 1px solid #1f1f23;
    outline: #1f1f23 solid 1px;
    outline-offset: 0px;
}
input::placeholder {
    color: #ffffff;
    opacity: 1;
}
input.error,
input:invalid {
    background-color: #ffdede;
    box-shadow: none;
}
input#sidebar_search_field {
    display: inline;
    width: 100%;
    margin: 0em;
    border-radius: 9px;
    padding-inline-end: 2.5rem;
}
textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 20ex;
    font: inherit;
    font-size: inherit;
    color: #ffffff;
    margin: 0.5em 0em;
    padding: 0.5em;
    background-color: #262626;
    border: 1px solid #c6ccc8;
    border-radius: 0em;
    resize: vertical;
}
textarea:focus {
    border-color: #ffffff;
    outline: #ffffff solid 1px;
    outline-offset: 0px;
}
button {
    font: inherit;
    font-size: inherit;
    cursor: pointer;
}
button:focus {
    outline: none;
}
button#sidebar_search_submit {
    display: block;
    position: absolute;
    width: 2.5rem;
    height: 100%;
    top: 0px;
    inset-inline-end: 0px;
    border: none;
    border-radius: 0em;
    margin: 0em;
    padding: 0em;
    background: transparent url(../images/search.svg) center no-repeat;
    background-size: 50%;
    overflow: hidden;
    color: transparent;
}
button#sidebar_search_submit:focus-visible {
    background-color: #c6ccc8;
}
button#sidebar_search_submit:hover {
    background-size: 60%;
}

.download-button {
    background-color: #161B22;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 48px 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
    position: relative;
}

.download-button:hover {
    background-color: #222;
}

.download-button:active {
    background-color: #444;
}

.download-button::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>'); /* أيقونة تنزيل SVG */
    position: absolute;
    right: 16px; /* تحديد موقع الأيقونة على اليمين */
    top: 50%; /* توسيط عموديًا */
    transform: translateY(-50%); /* توسيط عموديًا */
    width: 24px;
    height: 24px;
}

label {
    display: block;
    margin-top: 1em;
}
div#main {
    width: 100%;
    margin: 0em;
    padding: 0em;
    overflow: visible;
}
aside#sidebar {
    display: block;
    position: absolute;
    top: 1rem;
    inset-inline-end: 2rem;
    width: 12rem;
}
div.prev {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}
div.next, div.prev_next {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
div.ribbon {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    color: #ffffff;
    background-color: #161B22;
    padding: 0.5em;
    margin-top: 2rem;
    border-radius: 0.25em;
}
div.flash {
    background-color: #0070c4;
}
div.metadata {
    font-weight: normal;
    font-size: 0.75em;
    text-align: center;
    display: block;
    width: 100%;
    padding: 1.5rem 0rem;
    margin-top: 2rem;
    border-bottom: 1px solid #ebedec;
}
div.comments_pagination {
    width: 100%;
    text-align: center;
}
div.tags {
    margin: 1rem 0rem 0rem 0rem;
    font-size: 0.75em;
}
div.doaction {
    font-family: inherit;
    text-align: end;
    margin: 1em 0em;
}
div.admin {
    margin: 1em 0em 0em 0em;
}
div#main > article, div.standalone {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0rem auto 2rem 0rem;
    padding: 2rem 2rem 0rem 2rem;
}
div#main > article.post.pinned {
    border-color: #0070c4;
}
div#main > article.discourse,
div#main > article.commentary {
    padding: 0rem;
    overflow: hidden;
}
div#main > article.page {
    padding-bottom: 2rem;
}
div.standalone {
    margin-bottom: 0rem;
    padding-bottom: 2rem;
}
div.user_controls.standalone,
div.user_login.standalone,
div.lost_password.standalone,
div.reset_password.standalone,
div.user_register.standalone {
    max-width: 384px;
}
ul.archive article.post.archive {
    display: block;
    position: relative;
    height: 196px;
    font-size: 0.75em;
    padding: 8px;
    border: 1px solid #c6ccc8;
    border-radius: 0.5rem;
}
section.post_archive_container {
    height: 100%;
    overflow: hidden;
}
article > header {
    display: block;
    text-align: right;
    margin: 0rem 0rem 2rem 0rem;
    padding: 0rem 0rem 2rem 0rem;
    border-bottom: 1px solid #ebedec;
}
article > section {
    display: block;
    width: 100%;
    margin: 1rem 0rem 0rem 0rem;
    padding: 0em;
}
article > footer {
    display: block;
    text-align: start;
    margin: 1rem 0rem 0rem 0rem;
    padding: 0em;
    border: none;
    clear: both;
}
article.video video,
article.audio audio {
    width: 100%;
}
a:link,
a:visited {
    color: #b09797;
    text-decoration: none;
}
a:hover,
a:focus,
a:active,
summary:hover,
summary:focus,
summary:active {
    outline: none;
    color: #e0e7ff;
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 0.0625em;
}
div.ribbon a {
    color: #ffffff;
    font-weight: bold;
}
div.traversal a {
    display: inline-block;
    padding: 0.5em 1.25em;
    margin: 0.5em 0.5rem;
    min-width: 8em;
    border-radius: 0.5em;
    color: #ffffff;
    text-decoration: none;
    background-color: #161B22;
}
div.traversal a:hover,
div.traversal a:focus,
div.traversal a:active {
    color: #ffffff;
    background-color: #b09797;
}
div.traversal a:first-child {
    padding-right: 1.5rem;
    border-top-right-radius: 2em;
}
div.traversal a:last-child {
    padding-left: 1.5rem;
    border-bottom-left-radius: 2em;
}
section a:link,
p a:link,
section a:visited,
p a:visited {
    color: #b09797;
    text-underline-offset: 0.125em;
    text-decoration: underline;
    text-decoration-thickness: 0.0625em;
}
section a:hover,
p a:hover,
section a:focus,
p a:focus,
section a:active,
p a:active {
    color: #e0e7ff;
}
section a:focus-visible,
p a:focus-visible {
    text-decoration-style: double;
}
div.footnotes {
    font-size: 0.75em;
}
div.tags a,
div.tag_cloud a {
    display: inline-block;
    padding: 0.25em 0.5em;
    margin-bottom: 4px;
    border-radius: 0.25em;
    border: 1px #c6ccc8 solid;
    color: #39434d;
    text-decoration: none;
}
div.tags a:hover,
div.tags a:focus,
div.tags a:active,
div.tag_cloud a:hover,
div.tag_cloud a:focus,
div.tag_cloud a:active {
    color: #000000;
    background-color: #7ac2e5;
    border-color: #7ac2e5;
}
div.doaction a, button {
    display: inline-block;
    white-space: nowrap;
    padding: 0.5em 1.25em;
    border-radius: 2em;
    border: 1px #c6ccc8 solid;
    color: #39434d;
    text-decoration: none;
    background-color: #ffffff;
}
div.doaction a:hover,
button:hover,
div.doaction a:focus,
button:focus,
div.doaction a:active,
button:active {
    color: #000000;
    background-color: #7ac2e5;
    border-color: #7ac2e5;
}
div.doaction a.post_delete_link,
div.doaction a.delete_link {
    font-weight: bold;
}
section.photo > a:focus,
section a:has(img):focus {
    outline: #7ac2e5 solid 4px;
}
a.likes > img,
a.likes > svg {
    display: inline-block;
    height: 1.25em;
}
a.likes:hover > img,
a.likes:hover > svg,
a.likes:focus > img,
a.likes:focus > svg {
    animation: like_image 500ms alternate ease infinite;
}
@keyframes like_image {
    from {
        transform: scale(1.0);
    }
    to {
        transform: scale(0.8);
    }
}
a.archive_post_link {
    box-sizing: border-box;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    border-radius: 0.5rem;
    color: transparent;
    background-color: transparent;
}
a.archive_post_link:hover,
a.archive_post_link:focus,
a.archive_post_link:active {
    outline: #7ac2e5 solid 4px;
}
iframe {
    max-width: 100%;
    border: none;
    margin: 1rem 0rem;
}
iframe.content_embed {
    width: 100%;
    aspect-ratio: 16 / 9;
}
iframe.spotify_embed {
    height: 152px;
    aspect-ratio: unset;
}
iframe.bandcamp_m_embed {
    max-width: 700px;
    aspect-ratio: 1 / 1;
}
iframe.bandcamp_s_embed {
    max-width: 700px;
    height: 42px;
    aspect-ratio: unset;
}
iframe.bandcamp_l_embed {
    max-width: 700px;
    aspect-ratio: 2 / 3;
}

img:not(.suggested-posts-image) {
    border-style: none;
    margin-right: 0em;
    padding: 0em;
    overflow: clip; /* يضمن بقاء الصورة داخل حدود العنصر */
    overflow-clip-margin: content-box; /* يحافظ على الهوامش الصحيحة */
}

section img:not(.suggested-posts-image) {
    display: block;
    max-width: 100%;
    max-height: 90vh; /* يجعل الصورة لا تتجاوز 90% من ارتفاع الشاشة */
    height: auto; /* يحافظ على تناسب الأبعاد */
    object-fit: contain; /* يضمن بقاء الصورة كاملة داخل الإطار */
    margin: auto; /* يوسّط الصورة داخل العنصر */
    overflow: clip; /* يمنع الصورة من تجاوز حدود العنصر */
}

section.photo img,
article.archive img {
    width: 100%;
}

.site_title .site-icon {
    border-radius: 20%;
    vertical-align: middle;
    margin-left: 8px;
    border: 2px solid white; /* إطار أبيض بعرض 2 بكسل */
    box-sizing: border-box; /* التأكد من أن الإطار لا يزيد من حجم الصورة */
}

.ca-ico {
    vertical-align: middle;
    margin-left: 3px;
}

article > *:first-child,
header > *:first-child,
section > *:first-child,
footer > *:first-child,
form > *:first-child,
aside > *:first-child,
div.standalone > *:first-child {
    margin-top: 0rem;
}

.ajax_loading {
    background-size: 30px 30px;
    background-image: linear-gradient(
        -45deg,
        #f2f1f0 25%,
        transparent 25%,
        transparent 50%,
        #f2f1f0 50%,
        #f2f1f0 75%,
        transparent 75%,
        transparent
    ) !important;
    animation: ajax_loading 2s linear infinite;
}
.ajax_loading .doaction {
    visibility: hidden;
}
@keyframes ajax_loading {
    from {
        background-position: 0px 0px;
    }
    to {
        background-position: 60px 30px;
    }
}
@media print {
    html {
        font-size: 4.2mm;
    }
    body {
        background-color: #ffffff;
    }
    div#main > article,
    div.standalone {
        page-break-inside: avoid;
    }
}
@media screen and (max-width: 959px) {
    body {
        margin: 0.01rem;
    }
    form.comment_edit {
        padding: 0rem 0rem 1rem 0rem;
    }
    input, select {
        width: 100%;
    }
    ol.pingbacks {
        padding: 1rem;
    }
    ol.comments > li {
        margin: 0em;
        padding: 1rem 1rem 0rem 1rem;
    }
    ol.comments > li.comment_form {
        padding: 1rem;
    }
    ul.navigation > li {
        text-align: center;
    }
    aside#sidebar {
        position: static;
        width: 100%;
        text-align: center;
    }

    /* تنسيق مربع البحث */
    form.search_box {
        margin: 0rem auto 1rem auto;
        width: 70%;
        float: left;
        margin-left: 1rem;
    }


    div.menu_toggle {
        display: inline-block;
        width: 25%;
        margin: 0;
        text-align: right;
    }


    div.menu_toggle img {
        margin-right: 0.5em;
        filter:invert(1);
    }


    div.menu_toggle:nth-of-type(2) {
        display: none;
    }

/* إخفاء العناصر الأخرى داخل الشريط الجانبي */
aside#sidebar > *:not(.search_box):not(.menu_toggle):not(h1) {
    display: none;
}

/* عند النقر على زر القائمة */
aside#sidebar > #menu:target ~ *:not(script, style) {
    display: block;
    clear: both;
}

/* إخفاء زر الفتح عند فتح القائمة */
aside#sidebar > #menu:target {
    display: none;
}

/* إظهار زر الإغلاق عند فتح القائمة */
aside#sidebar > #menu:target + div.menu_toggle {
    display: inline-block;
}

/* إخفاء زر الإغلاق عند إغلاق القائمة */
aside#sidebar > div.menu_toggle:nth-of-type(2) {
    display: none;
}

    /* تنسيقات إضافية */
    div#main > article {
        padding: 1rem 1rem 0rem 1rem;
        margin-top: 1rem;
    }
    div#main > article > header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    div.standalone {
        padding: 1rem;
    }
    div.user_controls.standalone,
    div.user_login.standalone,
    div.lost_password.standalone,
    div.reset_password.standalone,
    div.user_register.standalone {
        margin-left: auto;
    }
    div.metadata {
        margin-top: 1rem;
        padding: 1rem 0rem;
    }
}

/* إخفاء زر القائمة على الشاشات الكبيرة */
@media screen and (min-width: 960px) {
    div.menu_toggle {
        display: none !important;
    }
}

    div.user_controls.standalone,
    div.user_login.standalone,
    div.lost_password.standalone,
    div.reset_password.standalone,
    div.user_register.standalone {
        margin-left: auto;
    }
    div.metadata {
        margin-top: 1rem;
        padding: 1rem 0rem;
    }
}
@media (prefers-reduced-motion) {
    .ajax_loading {
        animation: none;
    }
}
@media (prefers-contrast: more) {
    body {
        background-color: #ffffff;
    }
}

#footer-bottom {
    background-color: #000000; 
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-radius: 5px; /* الحواف العلوية والسفلية */
}

/* تنسيق للكمبيوتر (أكبر من 768px) */
@media (min-width: 768px) {
    #footer-bottom {
        border-radius: 5px; /* تبقى كما هي */
    }
}

/* تنسيق للجوال (أقل من 768px) */
@media (max-width: 767px) {
    #footer-bottom {
        border-radius: 20px 20px 0 0; /* زيادة الحواف من الأعلى فقط */
    }

    #footer-bottom .footer-links {
        padding: 0 20px;
        box-sizing: border-box;
    }
}

#footer-bottom .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: center;
}

#footer-bottom .footer-links li {
    display: inline-block;
    margin: 0 15px;
}

#footer-bottom .footer-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 2.8; /* ضبط المسافة الرأسية بين الأسطر */
}

#footer-bottom .footer-links li a:hover {
    color: #e74c3c;
}

/* تثبيت السايد بار فقط على الأجهزة الكبيرة (اللابتوب) */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    aside#sidebar {
        position: fixed;
        overflow-y: auto;
        max-height: calc(100vh - 2rem);
        scrollbar-width: none;
        padding-bottom: 1rem;
    }

    /* إخفاء شريط التمرير في كروم و إيدج */
    aside#sidebar::-webkit-scrollbar {
        display: none;
    }
}


@media (max-width: 1023px) {
    aside#sidebar {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 1024px) {
    #label_related_posts,
    .navigation.sidebar.related_posts {
        display: none !important;
    }
}


.post-thumbnail img {
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%; 
    display: block;
}

/* التنسيق الخاص بشاشات الكمبيوتر (أكبر من 768px) */
@media (min-width: 768px) {
    .post-thumbnail img {
        max-height: 250px; 
        margin: 0; 
    }
}

/* التنسيق الخاص بشاشات الجوال (أقل من 768px) */
@media (max-width: 767px) {
    .post-thumbnail img {
        max-height: 100%; 
        margin: 0 auto;
    }
}

.post-title {
    font-size: 1.5rem;
    margin-top: 10px;
}

.post-title a {
    text-decoration: none;
    color: #b09797;
}

.post-excerpt {
    font-size: 1rem;
    color: #C0C0C0;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background: #161B22;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.read-more:hover {
    background: #000000;
}
/* جدول التنقل */
.toctitle {
    background: #161B22;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: inline-block;
}
/* الشريط العلوي: اسم الموقع + الصفحات */
#main_header_top {
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
}

/* اسم الموقع على اليمين */
.site_title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.site_title a {
    color: white;
    text-decoration: none;
}
/* الصفحات على اليسار */
.main_header_pages {
    display: flex;
    gap: 15px;
}

.main_header_pages a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
}

.main_header_pages a:hover {
    color: #ddd;
}

@media (max-width: 767px) {
    .main_header_pages {
        display: none;
    }
}

/* الشريط السفلي: التصنيفات */
#main_header_categories_bar {
    background: linear-gradient(90deg, #0b0c10, #161b22, #5a5d6b);
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

#main_header_categories_bar::-webkit-scrollbar {
    display: none;
}

/* التصنيفات داخل الشريط */
#main_header_categories_bar a {
    display: inline-block;
    background-color: #0b0c10;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    margin: 5px;
}


#main_header_categories_bar a:hover {
    background-color: #d0d0d0;
}

/* شريط أيقونات التواصل الاجتماعي */
#social_media_bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 3px;
    padding-left: 20px;
    padding-right: 20px;
    background: #161B22;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgb(255 255 255);
}

/* تنسيق الأيقونات */
#social_media_bar a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

#social_media_bar a:hover {
    transform: scale(1.1); 
    opacity: 0.8;
}

.social_media_bar_img {
    margin-top: 5px;
}

.share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.share-btn img {
    width: 20px;
    height: 20px;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn {
    background: #161B22; 
    color: #ffffff;
}

.app-image {
    width: 120px; /* تعديل الحجم حسب الحاجة */
    height: auto;
    border-radius: 27px; /* يجعل الحواف دائرية */
}

/* إخفاء "مقالات ذات صلة" على الكمبيوتر (الشاشات الكبيرة فقط) */
@media (min-width: 1025px) {
    .related_posts_custom_container {
        display: none !important;
    }
}

/* إظهار "مقالات ذات صلة" فقط على الجوال والآيباد */
@media (max-width: 1024px) {
    .related_posts_custom_container {
        display: block !important;
    }
}


.related_posts_custom_container {
    margin-top: 60px;
    padding: 15px;
    background-color: #000000;
    border-radius: 8px;
}

.related_posts_custom_title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.related_posts_custom_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related_posts_custom_item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px; /* مسافة بين الصورة والرابط */
}

.related_posts_custom_thumbnail {
    margin-right: 0; /* إزالة المارجن القديم لأنه أصبح غير ضروري */
}


.related_posts_custom_image {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related_posts_custom_link {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.related_posts_custom_link:hover {
    color: #0056b3;
}

.note {
    position: relative;
    padding: 15px 65px 15px 20px;
    background: #e1f5fe;
    color: #3c4043;
    border-radius: 8px;
    overflow: hidden;
}

.note::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #b3e5fc;
    border-bottom-left-radius: 8px;
}

.note::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%233c4043"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"/></svg>');
    position: absolute;
    top: 8px; 
    right: 8px;
    width: 24px;
    height: 24px; 
}

.note.wr {
    position: relative;
    padding: 15px 65px 15px 20px;
    background: #ffebee;
    color: #3c4043;
    border-radius: 8px;
    overflow: hidden;
}

.note.wr::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #ffcdd2;
    border-bottom-left-radius: 8px;
}

.note.wr::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23d32f2f"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
    position: absolute;
    top: 8px; 
    right: 8px; 
    width: 24px;
    height: 24px;
}


.note.alert {
    position: relative;
    padding: 15px 65px 15px 20px;
    background: #fff3e0; 
    color: #3c4043; 
    border-radius: 8px;
    overflow: hidden;
}

.note.alert::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #ffe0b2; 
    border-bottom-left-radius: 8px;
}

.note.alert::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23f57c00"><path d="M12 2c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2s2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>');
    position: absolute;
    top: 8px; 
    right: 8px; 
    width: 24px;
    height: 24px;
}

.note.secs {
    position: relative;
    padding: 15px 65px 15px 20px;
    background: #e8f5e9;
    color: #3c4043;
    border-radius: 8px;
    overflow: hidden;
}

.note.secs::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #c8e6c9;
    border-bottom-left-radius: 8px;
}

.note.secs::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%232e7d32"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'); /* علامة صح SVG */
    position: absolute;
    top: 8px; 
    right: 8px; 
    width: 24px;
    height: 24px;
}
/* تنسيق قسم "مقالات قد تعجبك" */
.suggested-posts-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden; /* منع المحتوى من الخروج خارج الحدود */
}

.suggested-posts-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #C0C0C0;
    text-align: right; /* محاذاة العنوان لليمين */
}

.suggested-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggested-posts-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px; 
    border: 1px solid #b09797; 
    padding: 10px; 
    border-radius: 5px; 
    overflow: hidden; 
}

.suggested-posts-thumbnail {
    margin-right: 0; 
}

.suggested-posts-image {
    width: 100px;
    display: block;
    height: auto; 
}

.ad-container {
    margin: 20px auto;
    max-width: 100%;
    padding: 10px 10px;
    text-align: center;
}

.ad-container1 {
    margin: 20px auto;
    max-width: 100%;
    padding: 10px 10px;
    text-align: center;
}


.suggested-apps-container {
    margin-top: 30px;
}

.suggested-apps-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #fffdfd;
}

.suggested-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px; 
}

.suggested-app-item {
    background-color: #161b22;
    border-radius: 20px; 
    padding: 18px; 
    border-bottom: 4px solid #b09796;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.suggested-app-image {
    width: 100%;
    max-width: 110px; 
    height: auto;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 6px;
}

.suggested-app-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    white-space: nowrap; 
    overflow: hidden; 
}

.suggested-app-name {
    font-size: 14px; 
    font-weight: bold;
    color: #e0e0e0;
    text-decoration: none;
    margin: 6px 0 4px;
    display: block;
}

.suggested-app-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}

    .suggested-apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
        gap: 10px;
    }

    .suggested-app-item {
        padding: 15px; 
    }

    .suggested-app-image {
        max-width: 100px;
    }

.under-footer {
    padding: 20px;
    border-top: 1px solid #ebedec;
}

#rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center; /* ✅ التغيير الوحيد: تصف النجوم بالنص */
}

.star {
  font-size: 22px;
  color: #ddd;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, filter 0.2s;
  touch-action: manipulation;
  animation: sparkle 2s infinite alternate;
}

/* الهوفر يشتغل بس على الأجهزة اللي تدعم hover فعلي */
@media (hover: hover) {
  .star:hover,
  .star:focus {
    color: gold;
    filter: drop-shadow(0 0 5px gold);
  }
}

.star.selected {
  color: gold;
  filter: drop-shadow(0 0 5px gold);
}

@keyframes sparkle {
  0% {
    filter: drop-shadow(0 0 0px gold);
  }
  100% {
    filter: drop-shadow(0 0 5px gold);
  }
}

/* الحاوية العامة */
.app-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem auto;
  padding: 1rem;
  /* ✅ خلفية متدرجة ثابتة واضحة من 3 ألوان */
  background: linear-gradient(185deg, #161b22, #5a5d6b, #b09797);
  border-radius: 16px;
  overflow: hidden;
  position: relative; /* مهم لضبط الطبقات */
}

/* الصور */
.app-images-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.app-background-container {
  position: relative;
  width: 100%;
  padding-top: 50%; /* نسبة 2:1 */
}

.app-background {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px); /* ✅ بدون تأثيرات إضافية */
  z-index: 1; /* خلف المحتوى فوق التدرج */
}

.app-main-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.app-image-main {
  width: 90px;
  max-width: 70%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.app-name-below {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* البيانات */
.app-icb.data-app {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2; /* فوق الخلفية */
}

.app-icb.data-app .da-s {
  background: rgba(22, 27, 34, 0.5); /* زجاجي شفاف */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* تجاوب */
@media (max-width: 600px) {
  .app-block {
    padding: 0.5rem; /* قرب المحتوى للجوال أكثر */
  }

  .app-icb.data-app {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-name-below {
    font-size: 1rem;
  }

  .app-image-main {
    width: 40%;
  }

  .app-icb.data-app .da-s {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}


.post-meta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-meta-flex p {
  margin: 0;
}

.post-meta-comments {
  white-space: nowrap;
}

