:root {
  --color-primary: #5b9f8f;
  --color-accent-yellow: #ffe7b1;
  --color-secondary-text: #929bb5;
  --color-cta: #eb923b;
  --color-success: #80d838;

  --fs-h1: 48px;
  --fs-h2: 40px;
  --fs-h3: 32px;
  --fs-h4: 26px;
  --fs-h5: 22px;
  --fs-h6: 18px;
  --fs-p: 16px;
  --fs-small: 14px;
}

body img {
  max-width: 100%;
}
@font-face {
  font-family: "Mikhak";
  src: url("../font/woff2/Mikhak-Thin.woff2") format("woff2");
  font-weight: 100;
}

@font-face {
  font-family: "Mikhak";
  src: url("../font/woff2/Mikhak-Light.woff2") format("woff2");
  font-weight: 300;
}

@font-face {
  font-family: "Mikhak";
  src: url("../font/woff2/Mikhak-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Mikhak";
  src: url("../font/woff2/Mikhak-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Mikhak";
  src: url("../font/woff2/Mikhak-Black.woff2") format("woff2");
  font-weight: 900;
}

main {
  min-height: 70vh;
}
h1 {
  font-weight: 600;
  font-size: 42px;
}

h2 {
  font-weight: 700;
  font-size: 36px;

  font-variant-ligatures: contextual;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
}

h3 {
  font-weight: 500;
  font-size: 30px;
}

h4 {
  font-weight: 500;
  font-size: 24px;
}

h5 {
  font-weight: 300;
  font-size: 18px;
}

h6 {
  font-weight: 100;
  font-size: 14px;
}
a {
  font-weight: 100;
  font-size: 20px;
}
p {
  font-weight: 400;
  font-size: 20px;
}
.small-txt {
  font-size: 16px;
}

body {
  font-family: "Mikhak", sans-serif;
}

body {
  /* font-family: "ExpoArabic"; */
  /* text-align: end; */
  padding: 0;
}
a,
ul,
li {
  text-decoration: none;
  list-style: none;
  all: unset;
  color: black;
}
a,
p,
h1,
h2,
h3,
h4 {
  margin: 0;

}
@media screen and (max-width: 525px) {
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 22px;
  }
  p {
    line-height: 160%;
  }
}

.navbar-nav {
  background-color: var(--color-accent-yellow);
  border-radius: 200px;
  padding: 8px 40px;
  font-weight: 600;
}
.navbar-toggler-icon {
  background-color: var(--color-cta);
}
.navbar-toggler {
  border: solid;
  border-width: 1px;
  border-color: transparent;
  box-shadow: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--color-cta);
}
.nav-link:focus,
.nav-link:hover {
  color: var(--color-cta);
  opacity: 70%;
}
.navbar-nav a {
  color: var(--color-primary);
}
.three-bars-btn {
  height: 35px;
  border: none;
}
.collapse {
  width: 100%;
}
.collapse ul {
  width: 100%;
  background-color: transparent;
}
@media screen and (max-width: 992px) {
  header {
    background-color: var(--color-accent-yellow);
  }
}
a,
button {
  cursor: pointer;
}

/* footer */
footer {
  background-color: var(--color-success);
  color: white;
  padding: 0 0 60px 0;
  margin-block-start: 40px;
}
footer p {
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  width: fit-content;
}
@media screen and (min-width: 786px) {
  footer {
    margin: 0;
  }
  footer p {
    font-weight: 500;
    font-size: 24px;
    text-align: start;
    width: fit-content;
  }
}

.footer-divider {
  position: relative;
  inset-block-end: -50px;
  z-index: -20;
}
#loader {
  background-color: white;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
#loader h3 {
  color: var(--color-primary);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid var(--color-accent-yellow);
  border-top: 6px solid var(--color-cta); /* main color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* btn-group uses physical corners (first/last child); in RTL those look reversed. Isolate LTR so the pill shape matches in both languages. */
.lang-switch.btn-group {
  direction: ltr;
  unicode-bidi: isolate;
}

.lang-switch .lang-switch-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.social-float {
  position: fixed;
  inset-inline-start: 0;
  bottom: 40%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  background-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  direction: ltr;
  unicode-bidi: isolate;
}

.social-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 0;
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.social-float__btn:hover {
  background-color: #4d8f81;
  color: #fff;
}

.social-float__icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

@media screen and (max-width: 525px) {
  .social-float__btn {
    padding: 10px;
  }

  .social-float__icon {
    width: 20px;
    height: 20px;
  }
}

/* langouge changes  */

[dir="ltr"] .our-impact-card p {
  max-width: 400px;
  text-align: center;
}

[dir="ltr"] .idea-text h4 {
  font-size: 19px;
}
[dir="ltr"] .idea-n3 {
  inset-inline-start: 33px;
  inset-block-start: -0px;
}
[dir="ltr"] .idea-n2 {
  inset-inline-start: -0;
  inset-block-start: 15px;
  max-width: 140px;
}
[dir="ltr"] .our-curriculm-section h3 {
  font-size: 23px;
}


[dir="ltr"] .question-svg {
  transform: scaleX(-1);
}
[dir="ltr"] .girl-img-contact-us {
  transform: scaleX(-1);
}
[dir="ltr"] .text-box-register-btn {
  justify-content: center;
}
[dir="ltr"] .h1-bg {
  inset-inline-start: -40px;
}
[dir="ltr"] .number-card {
  width: 70%;
}
@media screen and (min-width: 522px) {
  [dir="ltr"] .number-card {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  [dir="ltr"] .our-curriculm-section h3 {
    font-size: 25px;
  }
  [dir="ltr"] .orange-label {
    width: 100%;
    /* TODO change the image url to fit the english text */
    background-image: url("../assests/orangeLabelEnglishDesktop.svg");
  }
  [dir="ltr"] .number-card {
    width: 100%;
  }
}

[dir="ltr"] .hero-box-end .h1-box {
  padding: 40px 30px 30px 0;
}
@media screen and (min-width: 992px) {
  [dir="ltr"] .h1-bg {
    inset-inline-start: 0;
  }
  [dir="ltr"] .idea-text h4 {
    font-size: 24px;
  }
  [dir="ltr"] .idea-n2 {
    inset-inline-start: -20px;
    inset-block-start: 20px;
    max-width: 200px;
  }
  [dir="ltr"] .idea-n3 {
    inset-inline-start: 30px;
    inset-block-start: -24px;
  }
}