@font-face {
  font-family: "Alibaba";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/Woff2/Alibaba-Light.woff2") format("woff2"),
    url("fonts/Woff/Alibaba-Light.woff") format("woff"),
    url("fonts/tff/Alibaba-Light.ttf") format("truetype");
}

@font-face {
  font-family: "Alibaba";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Woff2/Alibaba-Regular.woff2") format("woff2"),
    url("fonts/Woff/Alibaba-Regular.woff") format("woff"),
    url("fonts/tff/Alibaba-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Alibaba";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Woff2/Alibaba-Bold.woff2") format("woff2"),
    url("fonts/Woff/Alibaba-Bold.woff") format("woff"),
    url("fonts/tff/Alibaba-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Alibaba";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/Woff2/Alibaba-Black.woff2") format("woff2"),
    url("fonts/Woff/Alibaba-Black.woff") format("woff"),
    url("fonts/tff/Alibaba-Black.ttf") format("truetype");
}

:root {
  font-family: "Alibaba", "Inter Tight", sans-serif;
  direction: rtl;
}

body {
  font-family: inherit;
  direction: rtl;
}

.mhero-bg{
  background: url("rtl-images/hero-bg.png");
}

/* Table of Contents Styles */
#table-of-contents {
  background-color: #ffffff;
  border: 1px solid #eceff4;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  direction: rtl;
}

.dark #table-of-contents {
  background-color: #13171e;
  border-color: #1b232f;
}

#table-of-contents h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1c;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eceff4;
}

.dark #table-of-contents h2 {
  color: #fcfcfc;
  border-bottom-color: #1b232f;
}

@media (min-width: 48rem) {
  #table-of-contents h2 {
    font-size: 1.5rem;
    line-height: 1.6;
  }
}

#table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl;
}

#table-of-contents li {
  margin: 0.75rem 0;
  padding-right: 1.5rem;
  position: relative;
}

#table-of-contents li:first-child {
  margin-top: 0;
}

#table-of-contents li:last-child {
  margin-bottom: 0;
}

#table-of-contents li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #864ffe;
  border-radius: 50%;
}

.dark #table-of-contents li::before {
  background-color: #fcfcfc;
}

#table-of-contents a {
  color: #1a1a1c;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.8;
  display: block;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem 0;
}

.dark #table-of-contents a {
  color: #fcfcfc;
}

@media (min-width: 40rem) {
  #table-of-contents a {
    font-size: 1rem;
    line-height: 1.8;
  }
}

#table-of-contents a:hover {
  color: #864ffe;
  text-decoration: underline;
}

.dark #table-of-contents a:hover {
  color: #864ffe;
}

#table-of-contents a:focus {
  outline: 2px solid #864ffe;
  outline-offset: 2px;
  border-radius: 4px;
}