body {
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  font-weight: bold;
}

/* Main */
.main {
  min-height: 100vh;
  height: auto;
  width: 100%;
  background: var(--bg-colour);
  font-family: Calibri, serif;
  position: relative;
  background-size: cover;
  /* Ensure the background covers the whole page */
  margin: 0;
  /* Remove any margin */
  padding: 0;
  /* Remove any padding */
  overflow-x: hidden;
  /* Prevent overflow */
}

/* Navigation Bar */
nav {
  width: 84%;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 100px;
  cursor: pointer;
}

nav ul {
  flex: 1;
  text-align: center;
  padding: 0;
  /* Remove any default padding */
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin-left: 20px;
  margin-right: 10px;
  font-size: 25px;
  text-align: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--secondary-colour);
  transition: all 0.2s;
  display: inline-block;
}

nav ul li a span {
  text-decoration: none;
  color: var(--secondary-colour);
  transition: all 0.2s;
  display: inline-block;
}

nav ul li a:hover {
  color: #3d49b9;
  transform: scale(1.05);
}

nav ul li a:hover span {
  color: #3d49b9;
  transform: scale(1.35);
}

.active {
  color: #4551c1;
}

#icon {
  border: 3px solid var(--secondary-colour);
  border-radius: 55px;
  margin-left: 15px;
  width: 30px;
  cursor: pointer;
}

.lang-box a:hover {
  color: #3d49b9;
}

.en {
  display: flex;
  justify-content: space-between;
  width: 140px;
}
.ar {
  display: flex;
  justify-content: space-between;
  width: 140px;
}

.en:before {
  background-image: url("https://flagsapi.com/GB/flat/32.png");
  content: "";
  display: block;
  width: 32px;
  height: 32px;
}

.ar:before {
  background-image: url("https://flagsapi.com/SA/flat/32.png");
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  color: #1f2fb8;
}

.info {
  margin-right: 8%;
  margin-top: 15%;
  text-align: right;
}

.info h1 {
  font-size: 70px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

span {
  color: #3d49b9;
}

.info p {
  color: var(--secondary-colour);
  line-height: 22px;
  text-align: right;
  font-size: 22px;
  font-weight: bold;
}

.info a {
  background: var(--secondary-colour);
  padding: 10px 18px;
  text-decoration: none;
  color: var(--primary-colour);
  display: inline-block;
  margin: 30px 0;
  border-radius: 5px;
  text-align: right;
  font-weight: bold;
}

.img-box {
  width: 32%;
  height: 83%;
  position: absolute;
  bottom: 0;
  left: -70px;
}

.img-box img {
  height: 93%;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(50%);
  transition: bottom 1s, right 1s;
}

.img-box:hover .back-img {
  bottom: 40px;
}

.img-box:hover .maina-img {
  right: 40px;
}

.butt {
  transition: all 0.2s;
  transform: scale(1.2);
}

.butt:hover {
  transform: scale(1.35);
}

.social-links {
  margin-right: 8%;
  margin-bottom: 30px;
  text-align: right;
}

.social-links a {
  font-size: 30px;
  color: var(--secondary-colour);
  margin-left: 25px;
  display: inline-block;
  transition: all 0.2s;
}

.social-links a:hover {
  color: #3d49b9;
  transform: scale(1.3);
}

/* Theme */
:root {
  --primary-colour: #efefef;
  --secondary-colour: #212121;
  --bg-colour: #efefef;
  --accordion-bg: #efefef;
}

.dark-theme {
  --primary-colour: #212121;
  --secondary-colour: #efefef;
  --bg-colour: #636363;
  --accordion-bg: #969696;
}

.body {
  margin-right: 8%;
  margin-top: 5%;
}

.body h1 {
  font-size: 60px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

.body h2 {
  font-size: 30px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

.body p {
  color: var(--secondary-colour);
  font-size: 22px;
  line-height: 22px;
}

.body p a {
  color: #2134dd;
}

.body p a:hover {
  color: #3d49b9;
  font-size: 25px;
}

.body ul {
  color: var(--secondary-colour);
  font-size: 22px;
  line-height: 22px;
  margin-left: 10%;
}

.body ul li {
  display: inline-block;
  list-style: none;

  margin-top: 0.5%;
  font-size: 27px;
}

.ph {
  margin-right: 2%;
}

.body img {
  display: block;
  border: 5px solid #212121;
  border-radius: 10px;
}

.arr {
  font-size: 30px;
  color: var(--secondary-colour);
}

.arr:hover {
  color: #3d49b9;
  font-size: 35px;
}

.iel {
  width: 55%;
  height: 45%;
}

.jav {
  width: 65%;
  height: 85%;
}

.accordion {
  margin-right: 5%;
  width: 80%;
}

.accordion li {
  color: #2134dd;
  list-style: none;
  width: 100%;
  margin: 20px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 6px 6px 10px -1px #3d49b9, -6px -6px 10px -1px #3d49b9;
  background-color: var(--accordion-bg);
}

.accordion li img {
  display: inline-block;

  margin-right: 90px;
  margin-top: 30px;
  max-width: 90%;
  max-height: 600px;
  border: 10px solid #212121;
  border-radius: 10px;
}

.accordion li .calc {
  margin-right: 475px;
}

.accordion li .conv {
  margin-right: 400px;
}

.accordion li label {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

label::before {
  content: "+";
  margin-right: 10px;
  font-size: 24px;
  font-weight: 600;
}

input[type="checkbox"] {
  display: none;
}

.accordion .content {
  margin: 0 auto;
  padding: 0;
  line-height: 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s, padding 0.5s;
}

.accordion .content h3 {
  color: var(--secondary-colour);
}

.accordion .content h2 {
  color: #212121;
}

.accordion .content h3 a {
  color: var(--secondary-colour);
}

.accordion input[type="checkbox"]:checked + label + .content {
  max-height: 100%;
  padding: 10px 10px 20px;
}

.accordion input[type="checkbox"]:checked + label::before {
  content: "-";
}

.accordion h1 {
  line-height: 1;
}

.container {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: 0px;
  margin-left: 0px;
  color: var(--secondary-colour);
  font-size: 25px;
  line-height: 30px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 0.00001fr 0.00001fr 0.00001fr 0.00001fr 0.00001fr 0.00001fr;
  gap: 15px;
}

.row {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: 0px;
  margin-left: 0px;
  text-align: right;
}

.col {
  padding-top: 5px;
}

@media (max-width: 1280px) {
  .img-box {
    width: 20%;
    height: 80%;
    position: absolute;
    margin-left: 5%;
  }
}

/* Full-screen menu styles */
.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background-color: var(--bg-colour); /* Matches the original background */
  color: var(--primary-colour);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.burger-menu.active {
  display: flex;
}

.burger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.burger-menu ul li {
  margin: 15px 0;
  font-size: 25px;
  text-align: right;
  display: flex;
  justify-content: space-between; /* Align items to the left and right */
}

.burger-menu ul li:first-child {
  margin-top: 0;
}

.burger-menu ul li a {
  text-decoration: none;
  color: var(--secondary-colour);
  flex: 1; /* Push the "X" button to the right */
}

.burger-menu .close-btn {
  font-size: 30px;
  cursor: pointer;
  color: var(--secondary-colour);
  margin-left: 20px;
  display: block;
}

/* Ensure span and text have the same color when active */
.burger-menu ul li a.active,
.burger-menu ul li a.active span {
  color: #4551c1; /* Matches the active color */
}

/* Style the burger menu button */
.burger {
  color: var(--secondary-colour); /* Match the list items' color */
  font-size: 30px;
  cursor: pointer;
  display: none;
}

/* Hide the default nav on smaller screens */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .img-box {
    display: none;
  }

  .accordion {
    width: 80%;
  }
  .accordion li {
    width: 90%;
  }
  .accordion li img {
    max-width: 80%;
    max-height: 300px;
    padding: 0;
    margin: 0;
  }
}
