@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: rgb(219, 119, 255);
  --main-highlight: rgba(219, 119, 255, 0.2);
  --bg-main: white;
  --bg-second: #f8f8f8;
  --text-color: black;
  --borders: rgba(118, 118, 118, 0.2);
  --font-family: "Tajawal", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  color: var(--text-color);
  font-weight: 400;
  background-color: var(--bg-main);
  font-family: var(--font-family);
  direction: rtl;
}
body ::-webkit-scrollbar {
  height: 6px;
  background-color: var(--bg-main);
}
body ::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 20px;
}

a {
  color: var(--text-color);
  text-decoration: none;
}
a:hover {
  color: var(--main-color);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 5px;
  color: white;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  cursor: pointer;
  font-family: inherit;
  transition: 0.4s;
}
.btn:hover {
  background: transparent;
  color: var(--main-color);
}

.outline {
  background: transparent;
  color: var(--main-color);
}
.outline:hover {
  background: var(--main-color);
  color: white;
}

nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  right: 0;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--borders);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
  width: 90%;
}
nav .container .logo {
  font-family: cursive;
  font-size: 25px;
  font-weight: 600;
}
nav .container .logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
}
nav .container .logo a img {
  width: 50px;
}
nav .container .menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav .container .menu svg {
  cursor: pointer;
  display: none;
}
nav .container .menu #moon {
  display: flex;
}
nav .container .menu .btn {
  font-size: 13px;
  font-weight: bold;
}
nav .container .menu ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav .container .menu ul li .active {
  font-weight: 600;
}

.pre-hero {
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
}
.pre-hero span {
  font-family: inherit;
  position: relative;
  z-index: 1;
  color: var(--main-color);
}

.hero {
  background: var(--bg-main);
}
.hero .container {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.hero .container div {
  height: 100%;
  width: 100%;
  border-radius: 25px;
  padding: 2rem;
  font-size: 25px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid var(--main-color);
}
.hero .container div .btn {
  padding: 5px 15px;
}
.hero .container .part {
  background: var(--main-color);
  color: white;
  border-radius: 15px;
}
.hero .container .part .outline {
  color: white;
  border-color: white;
}
.hero .container .part .outline:hover {
  background: white;
  color: var(--main-color);
}
.hero .container .part2 {
  border-radius: 15px;
  color: var(--main-color);
}

.features {
  margin: 6rem 0;
}
.features h2 {
  text-align: center;
  font-size: 29px;
  margin-bottom: 2rem;
}
.features .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.features .container ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 400px;
  font-size: 18px;
  gap: 1rem;
  width: 100%;
}
.features .container ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  background-color: var(--bg-second);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--borders);
  flex: 0 0 calc(33.3333333333% - 2rem);
  width: calc(33.3333333333% - 10px);
}
.features .container ul li i {
  display: flex;
  background: var(--main-highlight);
  padding: 8px;
  border-radius: 25px;
  color: var(--main-color);
}

.about {
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 10px;
  border: 1px solid var(--borders);
  margin: 0 auto;
  text-align: center;
  background: var(--bg-second);
  padding: 2rem;
}
.about h2 {
  margin: 0 0 2rem;
}

form input:not([type=radio], [type=checkbox]),
form textarea,
form select {
  display: block;
  width: 100%;
  padding: 10px 15px;
  font-family: inherit;
  border: 1px solid var(--borders);
  border-radius: 7px;
  color: var(--text-color);
  outline: 0;
  background-color: var(--bg-main);
}
form input:not([type=radio], [type=checkbox]):focus,
form textarea:focus,
form select:focus {
  outline: 0;
  border-color: var(--main-color);
}
form select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
form small {
  color: rgb(138, 138, 138);
}
form .input-group {
  margin-bottom: 1rem;
}
form .btn {
  font-size: 18px;
  min-width: 100px;
  margin-top: 1rem;
}
form .btn i {
  font-size: 13px;
}
form h1 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
}
form .drop-container {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 80px auto 30px;
}
form .select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
  background-color: var(--bg-main);
  border: 1px solid var(--borders);
  margin-bottom: 1rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
form .select-btn .btn-text {
  font-size: 13px;
  color: var(--text-color);
}
form .select-btn .arrow-dwn {
  color: var(--text-color);
  transition: 0.3s;
}
form .select-btn .arrow-dwn i {
  font-size: 13px;
  display: flex;
}
form .select-btn.open .arrow-dwn {
  transform: rotate(-180deg);
}
form ::-webkit-scrollbar {
  width: 7px;
  background-color: var(--bg-main);
}
form ::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 20px;
}
form .list-items {
  position: absolute;
  margin-top: 15px;
  right: 0;
  border-radius: 8px;
  padding: 5px;
  background-color: var(--bg-second);
  border: 1px solid var(--borders);
  display: none;
  width: 100%;
  max-height: 300px;
  overflow-y: scroll;
}
form .list-items .item {
  display: flex;
  align-items: center;
  list-style: none;
  height: 40px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 4px;
}
form .list-items .item:hover {
  background-color: var(--bg-main);
}
form .list-items .item .item-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-color);
  padding-right: 10px;
}
form .list-items .item .checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 16px;
  border-radius: 4px;
  margin-right: 12px;
  border: 1px solid var(--borders);
  transition: all 0.3s ease-in-out;
}
form .list-items .item.checked .checkbox {
  background-color: var(--main-color);
  border-color: var(--main-color);
}
form .list-items .item .check-icon {
  color: var(--text-color);
  font-size: 11px;
  transform: scale(0);
  transition: all 0.2s ease-in-out;
}
form .list-items .item.checked .check-icon {
  transform: scale(1);
}
form .select-btn.open ~ .list-items {
  display: block;
}
form input[type=radio] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 50%;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}
form input[type=radio]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--main-color);
}
form input[type=radio]:checked::before {
  transform: scale(1);
}
form .radio-group {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1rem 0;
}

.cpanel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.cpanel .btn {
  border-radius: 25px;
}

.dashboard {
  max-width: 100%;
  overflow: auto;
}
.dashboard h2 {
  padding: 1rem 0;
}

.counting {
  font-weight: 600;
  padding: 0 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  max-height: 700px;
  display: block;
  white-space: nowrap;
}
table th,
table td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: right;
  min-width: -moz-max-content;
  min-width: max-content;
  white-space: nowrap;
  max-width: 450px;
  overflow: auto;
}
table th a,
table td a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: underline;
}
table th {
  background-color: var(--bg-second);
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
}
table tr:nth-child(even) {
  background-color: var(--bg-second);
}
table .btns {
  width: -moz-max-content;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
}
table .btns a {
  color: white;
}
table .btns:hover a {
  color: var(--main-color);
}
table .mini-btn {
  background: var(--main-color);
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--main-color);
  color: white;
}
table .mini-btn:hover {
  background-color: transparent;
  color: var(--main-color);
}
table .danger {
  background-color: rgb(255, 147, 147);
  border-color: rgb(255, 147, 147);
}
table .danger:hover {
  color: rgb(255, 147, 147);
}
table .post-btn {
  background: rgb(98, 202, 98);
  border-color: rgb(98, 202, 98);
  color: white;
}
table .post-btn:hover {
  color: rgb(98, 202, 98);
  background-color: transparent;
}

table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

table::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 4px;
}

table::-webkit-scrollbar-track {
  background-color: var(--bg-second);
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
  }
  th,
  td {
    white-space: nowrap;
  }
}
.message {
  position: absolute;
  top: 4rem;
  right: 1rem;
  background: var(--bg-second);
  border: 1px solid var(--borders);
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 7px;
  min-width: 400px;
  align-items: center;
}
.message div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.message svg {
  width: 18px;
  height: 18px;
  display: flex;
  fill: var(--main-color);
}
.message svg.remove {
  cursor: pointer;
  fill: var(--text-color);
  width: 20px;
  height: 20px;
}

.page {
  padding: 1rem;
  min-height: 85dvh;
}

.special-page {
  padding: 2rem 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90dvh;
}
.special-page form {
  position: relative;
  width: 450px;
  border: 1px solid var(--borders);
  padding: 2rem;
  border-radius: 10px;
}
.special-page form .back-btn {
  display: flex;
  position: absolute;
}
.special-page form .back-btn a {
  background-color: var(--bg-second);
  border-radius: 25px;
  padding: 0.7rem;
}
.special-page form .back-btn a svg {
  display: flex;
  height: 24px;
  width: 24px;
}
.special-page form p {
  margin: 2rem 0;
  font-size: 14px;
}
.special-page form p a {
  color: var(--main-color);
}

.jobs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.jobs .job {
  background-color: var(--bg-main);
  padding: 1rem;
  border: 1px solid var(--borders);
  color: var(--text-color);
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 180px;
}
.jobs .job .info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.jobs .job .info .special {
  padding: 1rem;
  border: 1px solid var(--borders);
  border-radius: 15px;
}
.jobs .job .info .special p {
  padding-bottom: 0.5rem;
}
.jobs .job .info .special span {
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
  font-size: 20px;
}
.jobs .job .info h2 {
  font-weight: bold;
}
.jobs .job .info .mini-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 13px;
  flex-wrap: wrap;
}
.jobs .job .info .mini-info span {
  background-color: var(--main-highlight);
  padding: 5px 15px;
  border-radius: 25px;
}
.jobs .job .info .labels span {
  background: rgba(122, 246, 122, 0.356);
}
.jobs .job .info--description {
  font-weight: 400;
}
.jobs .job .present {
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.jobs .job .present .btn {
  border-radius: 35px;
  background-color: transparent;
  color: var(--main-color);
  font-weight: 600;
  padding: 8px 20px;
  min-width: 120px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.jobs .job .present .btn:hover {
  background: var(--main-color);
  color: white;
}
.jobs .job .present .whatsapp {
  border-color: rgb(84, 222, 84);
  color: rgb(84, 222, 84);
}
.jobs .job .present .whatsapp:hover {
  background-color: rgb(84, 222, 84);
  color: white;
}

footer {
  background: var(--bg-second);
  margin-top: 2rem;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  height: 3rem;
}
footer .container ul {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}
footer .container ul li {
  font-size: 14px;
}
footer .container p a {
  color: var(--main-color);
}
footer .container p a:hover {
  text-decoration: underline;
}

.search {
  margin: 2rem auto;
  width: 50%;
}
.search h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.search form {
  display: flex;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}
.search form .btn {
  margin: 0;
  width: 50px;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 40px;
  display: flex;
  align-items: center;
  border-radius: 7px 0 0 7px;
  justify-content: center;
}
.search form .btn svg {
  display: flex;
  height: 20px;
  width: 20px;
}
.search form input {
  border-radius: 0 7px 7px 0;
}

@media screen and (max-width: 991px) {
  .pre-hero {
    font-size: 13px;
    padding: 1rem;
  }
  .hero .container {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .hero .container div {
    padding: 0.5rem;
    border: 1px solid var(--main-color);
  }
  .btn {
    font-size: 15px;
  }
  nav .container {
    width: 100%;
  }
  nav .container .logo {
    margin-right: 1rem;
  }
  nav .container .menu {
    margin-left: 1rem;
    gap: 1rem;
    direction: ltr;
  }
  nav .container .menu svg {
    display: flex;
  }
  nav .container .menu #sun {
    display: none;
  }
  nav .container .menu #moon,
  nav .container .menu #sun {
    width: 25px;
    height: 25px;
  }
  nav .container .menu ul {
    display: none;
    flex-direction: column;
    position: fixed;
    width: 100%;
    background: var(--bg-main);
    right: 0;
    top: 3.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--borders);
  }
  nav .container .menu ul li a {
    font-size: 25px;
  }
  nav .container .menu .btn {
    font-size: 12px;
  }
  nav .container .menu .show {
    display: flex;
  }
  .features .container ul {
    max-height: unset;
    padding: 0 1rem;
    gap: 2rem;
    flex-direction: column;
  }
  .features .container ul li {
    width: unset;
  }
  .about {
    margin: 0 1rem;
  }
  .special-page form {
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 1rem;
  }
  .special-page form .back-btn {
    position: relative;
  }
  .jobs {
    flex-direction: column;
  }
  .jobs .job {
    width: 100%;
    gap: 2rem;
    text-align: center;
    flex-direction: column;
  }
  .jobs .job .info {
    gap: 2rem;
  }
  .jobs .job .info p {
    width: -moz-fit-content;
    width: fit-content;
    white-space: wrap;
  }
  .jobs .job .info p:hover {
    position: relative;
    background-color: transparent;
    padding: 0;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border: 0;
  }
  .jobs .job .info .mini-info {
    flex-wrap: wrap;
    justify-content: center;
  }
  footer .container {
    height: -moz-fit-content;
    height: fit-content;
    padding: 1rem 0;
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .search {
    margin: 2rem auto;
    width: 100%;
  }
  .search h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  .search form {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 0 auto;
  }
}
.dark {
  --bg-main: #111;
  --bg-second: #222;
  --text-color: #f0f0f0;
}
.dark nav .container .menu #moon {
  display: none;
}
.dark nav .container .menu #sun {
  display: flex;
}