/* Start header home section */

.top-logo-badge {
  margin-top: 120px;
  margin-bottom: 25px;
}

.top-logo-badge img {
  width: 100%;
  display: block;
  border-radius: 45px;
  transform: rotate(3deg);
  border: 10px var(--white-color) solid;
  box-shadow: 0 4px 4px 0 var(--shdow-light-color);
  margin: auto;
}

.top-logo-badge img.dark {
  border-color: var(--six-color);
  box-shadow: 0 4px 4px 0 var(--shdow-dark-color);
}

.welcome-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: #fbdfcd;
  color: var(--six-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-family: "zanjabeel";
  font-weight: 800;
  text-align: right;
  margin-top: 50px;
  margin-bottom: 25px;
  width: fit-content;
}

.welcome-badge img {
  width: 20px;
}

/* العناوين */
.main-title {
  font-family: "zanjabeel";
  font-weight: 900;
  font-size: 35px;
  line-height: 1.6;
  margin-bottom: 0px;
  color: var(--six-color);
  text-align: right;
}

.main-title.dark {
  color: var(--white-color);
}

.highlight {
  color: var(--secondry-color);
}

.description {
  font-family: "IBM Plex Arabic";
  color: var(--gary-color);
  font-size: 17px;
  text-align: right;
  max-width: 650px;
  margin: 10px 0px 25px 0px;
  line-height: 1.6;
}

/* الأزرار */
.cta-group {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
  line-height: 1;
}

.btn-orange {
  background-color: var(--secondry-color);
  color: #fff;
}

.btn-orange:hover {
  background-color: var(--secondry-color);
  color: var(--six-color);
}

.btn-outline {
  border: 2px solid var(--secondry-color);
  color: var(--secondry-color);
}

.btn-outline:hover {
  background-color: #fdf2e9;
  color: var(--six-color);
}

.btn-outline:hover.dark {
  background-color: #573113;
  color: var(--white-color);
}

/* الإحصائيات */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  border-top: 1px solid transparent; /* اختياري */
}

.stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-number {
  font-family: "cairo";
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--six-color);
}

.stat-number.dark {
  color: var(--white-color);
}

.stat-label {
  color: var(--gary-color);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .main-title {
    font-size: 29px;
  }

  .description {
    font-size: 15px;
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .main-title {
    font-size: 25px;
  }

  .description {
    font-size: 14px;
    max-width: 400px;
  }
}

/* تحسين العرض على الموبايل */
@media (max-width: 575px) {
  .main-title {
    font-size: 25px;
  }
  .cta-group {
    flex-direction: column;
    gap: 14px;
  }
  .stats-container {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* end header home section */

/* ------------------------------------------------------------------------- */

/* Strat about hom section */

.after-speacial-heading {
  text-align: center;
  font-family: "IBM Plex Arabic";
  font-size: 18px;
  color: var(--gary-color);
  width: 40%;
  margin: 30px auto;
}

@media (max-width: 991px) {
  .after-speacial-heading {
    width: 70%;
  }
}

@media (max-width: 767px) {
  .after-speacial-heading {
    width: 95%;
  }
}

.about-section {
  /* margin-top: 100px; */
}

.card-about {
  background: var(--white-color);
  border-radius: 15px;
  width: 90%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  box-shadow: 0 0 10px 0 var(--shdow-light-color);
  border-right: 4px solid var(--secondry-color);
}

.card-about.dark {
  background: var(--six-color);
  box-shadow: 0 0 10px 0 var(--shdow-dark-color);
}

.img-card-about {
  width: 70px;
  height: 70px;
  background: var(--light-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-card-about img {
  width: 40px;
}

.title-about {
  font-family: "zanjabeel";
  font-weight: 900;
  font-size: 19px;
  color: var(--six-color);
}

.title-about.dark {
  color: var(--secondry-color);
}

.content-about {
  font-family: "IBM Plex Arabic";
  font-size: 19px;
  color: var(--gary-color);
  text-align: center;
  margin: 0;
}

/* End about hom section */

/* ------------------------------------------------------------------------- */

/* Start teacher year section home  */

.filters {
  display: flex;
  gap: 15px;
  background: var(--white-color);
  padding: 10px;
  border-radius: 20px;
  width: fit-content;
  margin: auto;
  margin-bottom: 50px;
  box-shadow: 0 4px 15px 5px var(--shdow-light-color);
}

/* Dropdown */
.dropdown {
  font-family: "IBM Plex Arabic";
  position: relative;
  min-width: 100px;
  text-align: center;
}

.dropdown-btn {
  background: #fbdfcd;
  color: var(--six-color);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  gap: 10px;
  text-align: center;
}

@media only screen and (max-width: 400px) {
  .dropdown-btn {
    padding: 8px 13px;
  }

  .dropdown-btn span {
    font-size: 13px;
  }
}

/* Arrow */
.arrow img {
  width: 20px;
  transition: 0.3s;
}

/* Rotate when open */
.dropdown.open .arrow {
  transform: rotate(-180deg);
}

/* Menu */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  text-align: center;
  padding: 0;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  font-family: "IBM Plex Arabic";
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.dropdown-menu li:hover {
  background: var(--hover-light-color);
}

.dropdown-menu li.active {
  background: #fbdfcd;
  color: var(--six-color);
}

.teacher-card {
  display: block;
  width: 95%;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  background: var(--white-color);
  padding: 15px;
  padding-bottom: 5px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px 5px var(--shdow-light-color);
}

.teacher-card:hover {
  text-decoration: none;
  transform: scale(1.02);
  box-shadow: 0 4px 15px 5px #59230241;
}

.teacher-card.dark {
  box-shadow: 0 4px 15px 5px var(--shdow-dark-color);
}

.teacher-card.dark:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px 5px #e86b1d41;
}

.card-img {
  position: relative;
  display: flex;
  background-color: var(--third-color);
  border-radius: 20px;
  height: 120px;
  /* overflow: hidden; */
}

.teacher-img {
  width: 110px;
  position: absolute;
  bottom: 0;
  right: 20px;
}

.logo-teacher {
  width: 135px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
  z-index: 1;
}

.teacher-name {
  font-family: "zanjabeel";
  font-weight: 900;
  font-size: 17px;
  color: var(--six-color);
  margin: 15px 0px 5px 0px;
}

.teacher-subject-content {
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--main-color);
}

.teacher-subject-content {
  text-decoration: none;
  color: var(--secondry-color);
}

.teacher-supject {
  font-family: "IBM Plex Arabic";
  font-size: 18px;
  text-align: center;
  color: var(--black-color);
  margin: 0;
}

.teacher-subject-content svg {
  transform: rotate(90deg);
}

/* End teacher year section home  */

/* Start courses section home */

.card-course {
  margin-bottom: 30px;
}

.course {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
  background: var(--white-color);
  border-radius: 20px;
  padding: 13px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 15px 5px var(--shdow-light-color);
}

.card-img-course {
  position: relative;
}

.course-year {
  font-family: "IBM Plex Arabic";
  font-size: 17px;
  position: absolute;
  bottom: -5px;
  right: -5px;
  margin: 0;
  background: var(--third-color);
  border: 5px solid var(--white-color);
  color: var(--white-color);
  border-radius: 20px 0 20px 20px;
  padding: 3px 13px;
  z-index: 10;
}

.course-subjsct {
  font-family: "IBM Plex Arabic";
  font-size: 17px;
  position: absolute;
  bottom: -5px;
  left: -5px;
  margin: 0;
  background: var(--third-color);
  border: 5px solid var(--white-color);
  color: var(--white-color);
  border-radius: 0px 20px 20px 20px;
  padding: 3px 13px;
  z-index: 10;
}

.course-free {
  font-family: "zanjabeel";
  font-weight: 900;
  font-size: 15px;
  position: absolute;
  top: -5px;
  left: -5px;
  margin: 0;
  background: var(--six-color);
  border: 5px solid var(--white-color);
  color: var(--white-color);
  border-radius: 20px 20px 20px 0px;
  padding: 3px 13px;
  padding-top: 8px;
  z-index: 10;
}

.course img {
  width: 100%;
  border-radius: 20px;
}

.content-course {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: right;
}

.content-course .course-name {
  font-family: "zanjabeel";
  font-weight: 900;
  color: var(--six-color);
  text-align: right;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 5px;
  margin: 0;
}

.course-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.insted-of-price {
  font-family: "IBM Plex Arabic";
  font-size: 15px;
  color: var(--gary-color);
}

.insted-of-price span {
  text-decoration: line-through;
}

.price {
  font-family: "zanjabeel";
  font-weight: 900;
  font-size: 9px;
  color: var(--black-color);
}

.price span {
  font-size: 14px;
  color: var(--main-color);
}

.content-course .number-lect {
  font-family: "cairo";
  position: relative;
  width: calc(100% + 30px);
  left: 15px;
  text-align: center;
  background: var(--third-color);
  padding: 10px 5px;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--black-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.date-course {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* flex-grow: 1; */
}

.date-course p {
  margin: 0;
  font-family: "IBM Plex Arabic";
  font-size: 13px;
  color: var(--six-color);
}

.date-course p img {
  width: 13px;
  border-radius: 0;
}

.date-course .date {
  color: var(--gary-color);
}

.description-course {
  flex: 1;
}

.description-course img {
  width: 14px;
  border-radius: 0;
}

.description-course span {
  font-family: "IBM Plex Arabic";
  font-size: 13px;
  color: var(--black-color);
}

.course-subscription {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check {
  font-family: "zanjabeel";
  font-weight: 900;
  width: 100%;
  padding: 9px 0px;
  font-size: 14px;
  text-align: center;
  background: var(--white-color);
  background: transparent;
  border: 2px solid var(--secondry-color);
  border-radius: 15px 15px 0 0;
  color: var(--secondry-color);
}

.you-subscription {
  border-style: dashed;
}

.check:hover {
  text-decoration: none;
  background: var(--hover-light-color);
  color: var(--secondry-color);
}

.pay-course {
  font-family: "zanjabeel";
  font-weight: 900;
  width: 100%;
  padding: 9px 0px;
  font-size: 14px;
  text-align: center;
  background: var(--secondry-color);
  border: 2px solid var(--secondry-color);
  border-radius: 0 0 15px 15px;
  color: var(--white-color);
}

.pay-course:hover {
  text-decoration: none;
  background: var(--hover-dark-color);
  border-color: var(--hover-dark-color);
  color: var(--white-color);
}

.work-course {
  background-color: var(--six-color);
  padding-top: 30px;
  padding-bottom: 1px;
}

/* End courses section home */

/* Start courses section course's student */

.courses-home {
  /* margin-top: 100px; */
}

/* End courses section course's student */

/* Start stage box and grades grid */

.stage-box {
  background: var(--white-color);
  border: 2px solid var(--third-color);
  padding: 20px;
  border-radius: 20px;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stage-box h3 {
  font-family: "Mmtsdr";
  color: var(--main-color);
  margin-bottom: 20px;
  font-size: 24px;
}

.grade-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.grade-links-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  background: var(--third-color);
  color: var(--main-color);
  border-radius: 12px;
  font-family: "Cairo";
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s;
}

.grade-links-grid a:hover {
  background: var(--main-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* End stage box and grades grid */

/* leaderboard */

/* container */
.leaderboard {
  /* width: 1100px; */
  background: var(--six-color);
  padding: 40px 20px 20px;
  border-radius: 30px;
  text-align: center;
  margin: 50px auto;
}

/* title */
.leaderboard h2 {
  font-family: "zanjabeel";
  font-weight: 900;
  color: var(--white-color);
  font-size: 36px;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--secondry-color);
  margin-bottom: 40px;
  font-size: 15px;
}

/* cards */
.cards {
}

/* card */

.main-card-leader {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.card-leader {
  border-radius: 25px;
  position: relative;
  margin: 40px;
  margin-top: 0;
  height: auto;
}

/* avatar */
.avatar {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 35px;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--main-color);
}

.rank {
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  background: var(--four-color);
  color: var(--white-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  line-height: 35px;
  border: 2px solid var(--main-color);
}

/* info */
.info {
  padding: 10px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 0 10px 0 var(--shdow-dark-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info h3 {
  font-family: "zanjabeel";
  font-weight: 800;
  font-size: 16px;
  color: var(--white-color);
  margin-bottom: 10px;
}

.info p {
  font-family: "zanjabeel";
  font-weight: 600;
  color: var(--secondry-color);
  font-size: 14px;
  margin: 0;
}

/* first */
.first .info {
  background: var(--main-color);
  transform: scale(1.1);
  box-shadow: 0 10px 30px var(--shdow-dark-color);
  height: 180px;
}

.first .info p {
  color: var(--six-color);
}

/* second */
.second .info {
  background: var(--five-color);
  height: 140px;
}

/* third */
.third .info {
  background: var(--four-color);
  height: 100px;
}

/* leaderboard */

/* Start vision home */

.vision {
  width: 100%;
  background: var(--four-color);
  padding: 25px 80px;
}

/* container */
.vision-content {
  text-align: right;
}

/* title */
.vision h2 {
  font-family: "zanjabeel";
  font-weight: 900;
  color: var(--white-color);
  font-size: 35px;
  margin-bottom: 20px;
}

.vision h2 span {
  color: var(--secondry-color);
}

/* paragraph */
.description-visio {
  font-family: "IBM Plex Arabic";
  color: var(--gary-color);
  font-size: 19px;
  line-height: 1.9;
  margin-bottom: 30px;
}

@media only screen and (max-width: 575px) {
  .description-visio {
    font-size: 16px;
  }
}

/* list */
.features {
  list-style: none;
  padding: 0;
}

.features li {
  font-family: "IBM Plex Arabic";
  color: var(--white-color);
  margin-bottom: 15px;
  position: relative;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features li img {
  width: 25px;
}

@media (max-width: 768px) {
  .vision {
    padding: 60px 20px;
  }

  .vision h2 {
    font-size: 28px;
  }

  .description {
    font-size: 16px;
  }
}

/* End vision home */
