/* =Global
----------------------------------------------- *//* =Global
----------------------------------------------- */
:root {
    --bg-dark: #050a14;
    --card-bg: #0d1424;
    --accent-orange: #ff5722;
    --accent-glow: rgba(255, 87, 34, 0.4);
    --text-main: #e0e0e0;
    --pure-white: #ffffff;
}

html {
    font-size: 16px !important; /* 👈 هذا السطر يحل مشكلة الخطوط الصغيرة تماماً */
    overflow-x: hidden !important;
}

body {
    direction: rtl !important; /* 👈 هذا السطر يجبر الموقع على الاتجاه العربي (يحل مشكلة الشقلبة) */
    text-align: right !important;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Almarai', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    font-size: 1.1rem;
    line-height: 1.6;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 20px; */
}

/* استرجاع أحجام العناوين الطبيعية التي يلغيها ووردبريس */
h1, h2, h3, h4, h5, h6 {
    clear: both;
    color: var(--pure-white);
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

hr {
    background-color: rgba(255, 255, 255, 0.1);
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

/* Text elements */
p {
    margin-bottom: 1.5em;
}
ul, ol {
    margin: 0 0 1.5em 3em;
}
ul {
    list-style: disc;
}
ol {
    list-style: decimal;
}
ul ul, ol ol, ul ol, ol ul {
    margin-bottom: 0;
    margin-left: 1.5em;
}
dt {
    font-weight: bold;
    color: var(--pure-white);
}
dd {
    margin: 0 1.5em 1.5em;
}
b, strong {
    font-weight: bold;
    color: var(--pure-white);
}
dfn, cite, em, i {
    font-style: italic;
}
blockquote {
    margin: 0 1.5em;
    border-right: 4px solid var(--accent-orange); /* إضافة لمسة برتقالية للاقتباسات */
    padding-right: 15px;
    color: #cbd5e1;
}
address {
    margin: 0 0 1.5em;
}
pre {
    background: var(--card-bg); /* لون خلفية الأكواد داكن */
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #a0aec0;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    padding: 1.6em;
    overflow: auto;
    max-width: 100%;
    border-radius: 10px;
}
code, kbd, tt, var {
    font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    color: var(--accent-orange); /* تلوين الأكواد المدمجة بالبرتقالي */
}
abbr, acronym {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    cursor: help;
}
mark, ins {
    background: rgba(255, 87, 34, 0.2); /* تحديد النص بلون برتقالي شفاف */
    color: var(--pure-white);
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
}
sup,
sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    bottom: 1ex;
}
sub {
    top: .5ex;
}
small {
    font-size: 75%;
}
big {
    font-size: 125%;
}
figure {
    margin: 0;
}
table {
    margin: 0 0 1.5em;
    width: 100%;
    border-collapse: collapse;
}
th {
    font-weight: bold;
    color: var(--pure-white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}
td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
}

button,
input,
select,
textarea {
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
    *vertical-align: middle;
}
button,
input {
    line-height: normal;
    *overflow: visible;
}

/* تحديث الأزرار لتتماشى مع الهوية الجديدة (بدون ظلال قديمة) */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
#github a {
    display: inline-block;
    padding: 12px 30px; /* تكبير الزر قليلاً */
    border: none;
    border-radius: 30px; /* حواف دائرية حديثة */
    background: var(--accent-orange);
    color: var(--pure-white);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    /* box-shadow: 0 5px 15px var(--accent-glow); */
    cursor: pointer;
    -webkit-appearance: button;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
#github a:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    background: #e64a19; /* درجة برتقالي أغمق قليلاً عند الوقوف */
    transform: translateY(-3px); /* حركة خفيفة للأعلى */
    /* box-shadow: 0 10px 20px var(--accent-glow); */
}

button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
#github a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px var(--accent-glow);
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
#github a,
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
#github a:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
#github a:active {
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* تنسيق حقول الإدخال لتلائم الـ Dark Mode */
input[type=text],
input[type=email],
input[type=tel],
textarea {
    color: var(--text-main);
    background: rgba(13, 20, 36, 0.6); /* خلفية كحلية شفافة */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* حواف ناعمة */
    padding: 10px 15px; /* مساحة داخلية مريحة */
    transition: all 0.3s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
    color: var(--pure-white);
    background: var(--card-bg);
    border-color: var(--accent-orange); /* تحديد برتقالي عند الكتابة */
    outline: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

textarea {
    overflow: auto;
    vertical-align: top;
    width: 98%;
    padding: 10px 15px;
}

/* Links (الروابط) */
a {
    color: var(--accent-orange); /* لون الروابط برتقالي */
    transition: all 0.3s ease;
}
/* a:visited {
    color: #e64a19;  
} */
a:hover,
a:focus,
a:active {
    color: var(--pure-white); /* يضيء باللون الأبيض عند الوقوف عليه */
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Alignment */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}
.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

/* Text meant only for screen readers */
.assistive-text {
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}