body {
  background: #f4f4f4 !important;
}

.dark-mode body {
  background: #111322 !important;
}

.line_post_scroll {
  position: fixed;
  bottom: 704px;
  left: 0;
  height: 3px;
  background: #ef8d65;
  z-index: 1005;
  width: 0;
  transition: width 0.15s linear;
}

.section_post {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1150px;
}

.post_header_img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  width: 65%;
}

.post_header_img img {
  width: 100%;
  height: 100%;
}

.post_header_img span {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 14px;
  background: #5c4d55;
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
  transition: 0.15s ease-in-out;
  cursor: pointer;
  &:hover {
    scale: 1.05;
  }
}

article.post_single {
  width: 65%;
  direction: rtl;
}

.post_single h1 {
  text-align: center;
  color: #ef8d65;
  padding: 20px 0;
}

.post_single p {
  text-align: justify;
  line-height: 1.7;
  margin: 10px 0;
}

.post_single .titles h2 {
  color: #ef8d65;
  border: 1px solid #ef8d65;
  display: inline-block;
  padding: 5px 15px;
  width: fit-content;
  margin: 10px 0;
  border-radius: 20px;
  font-size: 22px;
  transition: 0.15s ease-in-out;
  cursor: pointer;
  &:hover {
    scale: 1.02;
  }
}

.title h4.active {
  color: #ef8d65;
  font-weight: 600;
}

.lists_single_post {
  display: flex;
  justify-content: space-between;
  width: 45%;
  margin: 15px 35px 10px 0;
}

.post_single .titles h3 {
  color: #ef8d65;
  font-size: 19px;
  margin: 7px 0;
}

.lists_single_post .dot li {
  list-style-type: disc;
}

.lists_single_post .numbors li {
  list-style-type: decimal;
}

.watch_also {
  display: flex;
  flex-direction: column;
  width: 45%;
  margin: 50px 35px 10px 0;
}

.watch_also ul {
  margin: 10px;
}
.watch_also li {
  list-style-type: disc;
  margin: 0px 35px;
}

.color_content {
  background: #f3dfd7;
  color: black;
  border: 1px solid #f1c0ac;
  border-radius: 10px;
  padding: 15px 25px;
}

.dark-mode .color_content {
  background: #3e2b2f;
  color: white;
  border: 1px solid #855344;
  border-radius: 10px;
  padding: 15px 25px;
}

.image_single_post {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  margin-bottom: 120px;
}

.watch_also {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 45%;
  justify-content: center;
  align-items: center;
  margin: 15px -90px;
}

.dvider_line_post1 {
  position: absolute;
  top: -60px;
  right: -120px;
  display: flex;
  width: 130%;
  height: 1.5px;
  background: #d9d9d9;
}

.dark-mode .dvider_line_post1 {
  position: absolute;
  top: -60px;
  right: -120px;
  display: flex;
  width: 130%;
  height: 1.5px;
  background: #4e6d85;
}

.dvider_line_post2 {
  position: absolute;
  top: -60px;
  right: -120px;
  display: flex;
  width: 130%;
  margin: 10px 0;
  height: 1.5px;
  background: #d9d9d9;
}

.dark-mode .dvider_line_post2 {
  position: absolute;
  top: -60px;
  right: -120px;
  display: flex;
  width: 130%;
  margin: 10px 0;
  height: 1.5px;
  background: #4e6d85;
}

.txtwatch {
  position: absolute;
  top: -90px;
  right: 375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f4;
  padding: 5px 15px;
}

.dark-mode .txtwatch {
  position: absolute;
  top: -90px;
  right: 375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111322;
  padding: 5px 15px;
}

.txtwatch h5 {
  font-size: 30px;
  font-weight: normal;
}

.txtwatch span {
  font-size: 14px;
}

.container_post_also {
  display: flex;
  width: 115%;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
}

.watch_also_single {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 35%;
  text-align: right;
  cursor: pointer;
  transition: 0.15s ease-in-out;
  &:hover {
    scale: 1.02;
  }
}

.watch_also_under {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 45%;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.dark-mode .watch_also_single h5 {
  color:#f4f4f4 !important;
}

.watch_also_single h5 {
  font-size: 20px;
  margin-bottom: 25px;
  margin-right: 22px;
}

.watch_also_single p {
  font-size: 13px;
   margin-right: 22px;
}

.container_side_post_single {
  position: fixed;
  top: 0;
  right: 0;
  width: 30%; /* بياخد 30% من عرض الشاشة */
  height: 100vh; /* ياخد ارتفاع الشاشة بالكامل */
  background: transparent; /* لون خلفية بسيط */
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

/* جزء العناوين */
.scroll_side_post {
  flex: 1;
  width: 50%;
  overflow-y: auto; /* يخلي السكرول يشتغل */
  direction: rtl;
  box-sizing: border-box;
  position: relative;
  top: 180px;
  max-height: 430px; /* لو عايز تحدد مساحة معينة */
  scrollbar-width: thin; /* ممكن تكون auto أو none أو thin */
  scrollbar-color: #ef8d65 #f4f4f4;
}

.dark-mode .scroll_side_post {
  scrollbar-color: #ef8d65 #1e1e1e;
}

/* محتوى العناوين */
.scroll_side_post .title {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  color: #d9d9d9;
  width: 100%;
}

.scroll_side_post .title h4 {
  margin: 0;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.scroll_side_post .title h4:hover {
  color: #ef8d65;
}

/* تخصيص السكرول */
.scroll_side_post::-webkit-scrollbar {
  width: 8px;
}
.scroll_side_post::-webkit-scrollbar-track {
  background: #d9d9d9;
  border-radius: 16px;
}
.scroll_side_post::-webkit-scrollbar-thumb {
  background-color: #ef8d65;
  border-radius: 16px;
  border: 2px solid #1e1e1e;
}

.side-title-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.side-title-item:hover {
  background: transparent;
  color: #ef8d65;
}

.side-title-item.active {
  background: transparent;
  color: #ef8d65;
  font-weight: bold;
}

/* جزء المشاركة */
.share_singel_post {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
  position: relative;
  bottom: -260px;
}

.dark-mode .share_singel_post h5 {
  color: #fff;
}

.social_media a img {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.social_media a:hover img {
  transform: scale(1.2);
}

.code-box {
  position: relative;
  background-color: #0b1225;
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  font-family: monospace;
  margin: 20px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .code-box {
  background-color: #3e2b2f;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #5664d2;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}
.copy-btn:hover {
  background: #7181f0;
}
pre {
  margin: 0;
  overflow-x: auto;
}

pre {
  background: #1e1e1e !important;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  overflow-x: auto;
}

code {
  color: #ff9966; /* لون النص */
}

.container_post_us {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
  background: #f4f4f4;
  padding: 0 40%;
  gap: 35px;
}

@media (max-width: 440px) {
  .section_post {
    min-width: 440px;
  }
  .post_header_img {
    width: 90%;
    margin-right: 28px;
  }
  .post_single h1 {
    margin-right: 20px;
  }
  .container_side_post_single {
    display: none;
  }

  .txtwatch {
    position: unset;
    margin-bottom: 40px;
    z-index: 1001;
    background: #f4f4f4;
    position: sticky;
    margin-right: 32px;
  }

  .dvider_line_post1 {
    top: 30px;
  }

  .dvider_line_post2 {
    top: 20px;
    right: 190px;
  }

  .container_post_also {
    width: 164%;
    flex-direction: column;
  }

  .watch_also_single {
    width: 94%;
    text-align: center;
  }

  .title_appmobile {
    text-align: center;
  }

  .container-us .divaider {
    margin-right: 45px;
    width: 360px;
  }

  .posts .post {
    width: 98% !important;
  }

  .container_home {
    width: unset;
  }

  .posts {
    min-width: unset !important;
  }

  .title_appmobile {
    width: 100%;
  }

  .contents h2 {
    overflow: unset;
    margin-bottom: 20px;
  }

  .line_post_scroll {
    bottom: 903px;
  }
}
