:root {
  --primary-color: #0c0f19;
  --secondary-color: #fdca4b;
  --gray-color: #2c2f3a;
  --gray-light-color: #54555a;
  --gray-dark-color: #1a1c24;
  --gray-100-color: #f5f5f5;
  --wite-color: #ffffff;
  --border-color: #54555a;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Tajawal", sans-serif;
  background: var(--primary-color);
  color: var(--gray-100-color);
  overflow-x: hidden;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin-bottom: 0.8em;
}
ul,
ol {
  padding-right: 20px;
}

a {
  text-decoration: none;
  color: var(--gray-100-color);
}

.container {
  padding-left: 16px;
  padding-right: 16px;
}
input,
textarea,
select,
button {
  font-family: "Tajawal", sans-serif;
}
/* Header */
p.site-title {
  margin: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
  line-height: 1.2;
  position: sticky;
  top: 0;
  background: #0a0c13;
  z-index: 9;
}

.site-branding {
  display: flex;
  color: #fff;
  gap: 9px;
  align-items: center;
}

p.site-description {
  display: none;
}

a.custom-logo-link {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50px;
  flex: 0 0 auto;
}

p.site-title a {
  color: #fff;
  font-size: 14px;
}

a.custom-logo-link img.custom-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-toggle {
  width: 32px;
  height: 32px;
  position: relative;
  border: 1px solid #9a9a9a;
  background: transparent;
  border-radius: 5px;
  z-index: 9;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  height: 2px;
  width: 16px;
  background: #9a9a9a;
  position: absolute;
  inset-inline-end: 7px;
}

.menu-toggle::before {
  top: 8px;
  box-shadow: 0 6px 0px #9a9a9a;
}

.menu-toggle::after {
  bottom: 8px;
}

.menu-menu-1-container {
  position: fixed;
  top: 0;
  height: 100vh;
  background: var(--primary-color);
  left: 0;
  min-width: 260px;
  padding: 20px;
  padding-top: 60px;
  border: 1px solid var(--border-color);
  border-radius: 0 10px 10px 0;
  border-block: 0;
  border-inline-end: 0;
  transform: translateX(-260px);
  transition: transform 0.3s ease-in-out;
}

.menu-menu-1-container:is(.active) {
  transform: translateX(0);
}

.menu-menu-1-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.menu-menu-1-container ul li a {
  display: block;
  color: var(--wite-color);
}

/* site */

.site-body h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.box-content {
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  background: var(--gray-dark-color);
  overflow: hidden;
}

.site-body a:hover {
  text-decoration: underline;
}

.site-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 71px);
}

.site-body a {
  margin-bottom: 5px;
  display: block;
}

.site-body a:last-child {
  margin: 0;
}

.posts-container .post-item {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 15px;
}

.posts-container.box-content {
  padding: 0 !important;
}

.posts-container .post-item .post-excerpt {
  color: #bcbcbc;
  font-size: 14px;
}

/* Footer */
.site-info {
  text-align: center;
  padding: 20px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}

.site-main {
  max-width: 950px;
  margin-inline: auto;
  padding: 16px;
  background: var(--gray-dark-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.site-main-blog aside {
  border: 1px solid var(--border-color);
  position: sticky;
  top: 95px;
  z-index: -1;
  background: var(--gray-dark-color);
  padding: 16px;
  max-height: fit-content;
  border-radius: 8px;
  margin-top: 20px;
}

.site-main-content {
  padding: 16px;
  flex: 1;
  background: var(--gray-dark-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.wp-block-heading {
  font-size: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

a.wp-block-latest-posts__post-title {
  display: block;
  margin-bottom: 8px;
}

ul.wp-block-categories-list.wp-block-categories {
  padding: 0;
  list-style: none;
  margin: 0;
}

p.comment-form-comment {
  display: grid;
  gap: 16px;
}

p.form-submit {
  margin: 0;
}

#comment {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--primary-color);
  color: var(--gray-100-color);
  resize: vertical;
}

#comment:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.submit {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  font: inherit;
  cursor: pointer;
}

.submit:hover {
  background: #e6b43c;
}

.entry-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 14px;
  display: grid;
  gap: 16px;
}
#comments {
  margin-top: 40px;
}
.entry-footer a {
  color: var(--secondary-color);
  display: inline-block;
  margin-right: 8px;
  background-color: var(--primary-color);
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
}
.entry-footer a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}
.entry-content a {
  color: var(--secondary-color);
  text-decoration: dashed underline;
  text-underline-offset: 4px;
  display: inline-block;
  margin-top: 4px;
}
/* Media Queries */
@media (min-width: 768px) {
  .site-body {
    flex-direction: row;
  }
  .site-body .sidebar {
    width: 250px;
    flex: 0 0 250px;
  }
  .site-body .posts-list {
    flex: 1;
  }

  .site-main-blog {
    display: flex;
    gap: 16px;
    padding: 0 16px;
  }
  .site-main-blog aside {
    max-width: 300px;
    flex: 0 0 300px;
  }
  .site-main-blog aside {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .site-body .sidebar {
    width: 300px;
    flex: 0 0 300px;
  }
  .site-main-blog {
    max-width: 1190px;
    margin-inline: auto;
  }
}

/* Scrollbar styling */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--primary-color);
}
body::-webkit-scrollbar-thumb {
  background: var(--gray-dark-color);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-color);
}
/* smooth scrolling */
html {
  scroll-behavior: smooth;
}

.entry-title {
  font-size: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}
.wpcf7-text {
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  color: var(--gray-100-color);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
}
.wpcf7-text:focus,
.wpcf7-textarea {
  outline: none;
  border-color: var(--secondary-color);
}
.wpcf7-textarea {
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  color: var(--gray-100-color);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.wpcf7-submit {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  font: inherit;
  cursor: pointer;
}

label {
  display: block;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--primary-color);
  color: var(--gray-100-color);
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form-cookies-consent input {
  width: auto;
  margin: 0;
}

.d-flex.align-items-center {
  display: flex;
  gap: 4px;
  align-items: center;
}

.archive .site-main-content article.post {
  margin: 0 0 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.archive .site-main-content article.post a {
  font-size: 17px;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

.archive
  .site-main-content
  article.post
  .entry-meta.d-flex.align-items-center
  a {
  font-weight: 100;
  color: #b8b8b8;
  font-size: 14px;
  margin: 0;
}

svg.icon.icon-tabler.icon-tabler-calendar-event {
  color: #acacac;
  scale: 0.8;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

pre {
  position: relative;
  direction: ltr;
  border-radius: 10px;
  overflow: auto;
  padding-top: 40px;
  font-size: 14px;
}

.copy-code {
  position: absolute;
  top: 8px;
  left: 10px;
  background: #2d2d2d;
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
}

.copy-code:hover {
  background: #444;
}

pre[class*="language-"] {
  border-radius: 12px;
  overflow: auto;
  font-size: 14px;
}

/* لو موقعك عربي وبدك زر النسخ على اليسار مثل الصورة */
div.code-toolbar > .toolbar {
  opacity: 1;
}
div.code-toolbar > .toolbar .toolbar-item > button {
  border-radius: 8px;
  font-size: 12px;
}

.code-toolbar {
  direction: ltr;
}
