body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Cairo", sans-serif;
  background-image: url("/assist/background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  object-fit: cover;
  background-size: 100% auto;
}

/*-------------------------------HEADER----------------------------------------*/
.img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}

.icon {
  font-size: 1rem;
  cursor: pointer;
  margin-left: 15px;
}

/* General link styles */
.navbar-links {
  list-style: none;
  /* Remove default list styling */
  padding: 0;
  margin: 0;
  display: flex;
  gap: 70px;
  /* Space between links */
}

.navbar-links a {
  text-decoration: none;
  color: black;
  /* Default color for links */
  font-weight: 500;
  position: relative;
  /* Necessary for positioning ::after */
  padding: 5px 0;
  /* Space around the text (optional) */
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  /* Thickness of the underline */
  background-color: black;
  /* Same color as text */
  transition: width 0.3s ease;
}

.navbar-links a.active::after {
  width: 100%;
  /* Match the width of the link text */
}

.navbar-links a:hover::after {
  width: 100%;
  /* Match the text width on hover */
}

.navbar-links a:hover {
  color: darkblue;
  /* Change link color on hover */
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.navbar-links a.active {
  color: darkblue;
  /* Different color for the active link */
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

/* Adjust underline color in dark mode */
.dark-mode .navbar-links a::after {
  background-color: white;
}

.dark-mode .navbar-links a {
  color: white;
}

.dark-mode .navbar-links a.active {
  text-shadow: none;
}

.dark-mode .navbar-links a.active::after {
  background-color: white;
}

.navbar-dark-mode {
  background-color: #333 !important;
  color: white !important;
  direction: ltr;
}

.dark-mode .navbar-links .active::after {
  background-color: white;
}

.dark-mode {
  background-color: #121212;
  color: white;
}

.dark-mode .navbar-links a {
  color: white !important;
}

#smNavbar {
  background-color: #f8f9fa;
}

#smSearchBarContainer {
  padding: 10px;
  background-color: #f8f9fa;
}

#smimg {
  object-fit: contain;
  cursor: pointer;
  position: relative;
  right: 12px;
}

.no-scroll {
  overflow: hidden;
  height: 100%;
}

.sm-menu {
  position: fixed;
  top: 54px;
  left: -270px;
  width: 250px;
  height: 100%;
  background-color: #f8f9fa;
  box-shadow: 3px 6px 5px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: right;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sm-menu.show {
  left: 0;
}

.sm-menu a {
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1.2rem;
  color: #666;
  display: block;
  transition: color 0.3s ease;
  border-bottom: 1px solid #ddd;
}

.sm-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sm-menu a:hover {
  color: #30b4f1;
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.sm-menu a.active {
  color: darkblue;
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

#smSearchIcon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666666;
  position: relative;
  left: 90px;
}

#smimg {
  position: relative;
  left: 10px;
}

#smMenuIcon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666666;
  margin-right: 15px;
}

#smSearchIcon:hover,
#smMenuIcon:hover {
  color: rgb(50, 50, 225);
}

#smNavbar {
  background-color: #f8f9fa;
}

#smSearchIcon,
#smMenuIcon {
  font-size: 1.5rem;
  cursor: pointer;

  color: #666666;
}

#smSearchIcon:hover,
#smMenuIcon:hover {
  color: rgb(50, 50, 225);
}

.sm-menu a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #30b4f1;
}

.dark-mode #smNavbar {
  background-color: #333;
  color: white;
}

.dark-mode .sm-menu {
  background-color: #333;
}

.dark-mode .sm-menu a {
  color: white;
}

/* HEADER END !!!!!!!!!*/

/* --------------------------------section1------------------------------------------------------------------------*/
.section {
  z-index: -1;
  background-color: #004a6b;
  color: white;
  padding: 10px 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: row;
  gap: 20px;
}

.section .text-content {
  max-width: 500px;
  padding: 20px;
  direction: rtl;
  justify-content: center;
  text-align: center;
}

.text-content span {
  color: #50abdf;
  font-weight: bold;
}

.section h2 {
  font-size: 48px;
  margin-bottom: 15px;
  direction: rtl;
  color: #a1defa;
}

.section p {
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
}

.section .image-container {
  position: relative;
  width: 350px;
  height: 450px;
  overflow: hidden;
  border-top-right-radius: 180px;
  border-top-left-radius: 180px;
  transform: translate(46%, 20%);
  box-shadow: 0px 10px 30px 0px #28658d;
}

.section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icons-sec1 {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 10px;
  margin-right: 190px;
  direction: rtl;
}

.icon-sec1 {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #A1DEFA;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.icon-sec1 img {
  width: 40px;
  height: 40px;
}

.icon-sec1:hover {
  background-color: #30B4F1;
}

.icon-sec1 .tooltip {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.icon-sec1:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.dark-mode .p {
  color: white;
}

.dark-mode .section-description {
  color: white;
}

/* استعلامات الوسائط للتجاوب */
@media (max-width: 1024px) {
  .icons-sec1 {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .section {
    flex-direction: column;
    text-align: center;
  }

  .section .image-container {
    margin-top: 20px;
    transform: translate(4%, 10%);
    width: 250px;
    height: 350px;
  }

  .icons-sec1 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .icons-sec1 {
    align-items: center;
    margin-right: 10px;
    justify-content: center;
  }
}

/*----------------------------------------------- section2 ----------------------------------------------*/
.timeline {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  /* عمود على اليسار، خط المنتصف، عمود على اليمين */
  gap: 20px;
  align-items: start;
}

h2 {
  color: #0072c6;
  font-size: 28px;
  margin-top: 40px;
  text-align: center;
}

.timeline-item {
  position: relative;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0);
}

.timeline-item.left {
  grid-column: 1 / 2;
}

.timeline-item.right {
  grid-column: 3 / 4;
  margin-top: 150px;
}

.date {
  font-size: 18px;
  color: #28658d;
  margin-bottom: 10px;
  font-weight: bold;
}

.timeline-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0);
}

.timeline-content img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid black;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 20px;
  color: #30b4f1;
  font-weight: bold;
  margin: 0 0 10px;
}

.timeline-content p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.timeline-content button {
  background-color: #214d6d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  margin-top: 10px;
  cursor: pointer;
}

.timeline-content button:hover {
  background-color: #30b4f1;
}

/* الخط الفاصل في المنتصف */
.timeline::before {
  content: "";
  grid-column: 2 / 3;
  width: 4px;
  background-color: #28658d;
  top: 0;
  bottom: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    /* تحويل الشبكة إلى عمود واحد */
  }

  .timeline-item {
    grid-column: 1 / 2;
    /* وضع كل عنصر في العمود الأول */
  }

  .timeline-item.left,
  .timeline-item.right {
    grid-column: 1 / 2;
    /* وضع جميع العناصر في نفس العمود عند التصغير */
  }

  .timeline-item.right {
    margin-top: 10px;
  }

  .timeline::before {
    display: none;
    /* إخفاء الخط الفاصل في الوضع العمودي */
  }

  .date {
    position: relative;
    top: 0;
    margin-bottom: 5px;
  }
}

/*----------------------------------------------- section3 ----------------------------------------------*/

.sec1,
.sec2,
.sec3,
.sec4,
.sec5 {
  text-align: center;
  margin-bottom: 70px;
}

.sec1 h1,
.sec2 h1,
.sec3 h1,
.sec4 h1,
.sec5 h1 {
  text-align: center;
  font-size: 30px;
  color: #30b4f1;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  direction: rtl;
  margin: 30px auto;
  display: flex;
  justify-content: center;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.slide {
  direction: ltr;
  min-width: 50%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.navigation span {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.navigation span:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media only screen and (max-width: 768px) {
  .slider-container {
    margin: 20px auto;
    /* Adjust margin for smaller screens */
  }

  .slide {
    min-width: 45%;
    /* Set image width to full for smaller screens */
  }
}

/*----------------------------------------------- photo section ----------------------------------------------*/
.imgcontainer {
  display: flex;
  justify-content: center;
}

.photo2 {
  max-width: 100%;
  height: auto;
  margin-top: 70px;
}

/*----------------------------------------------- section 4 ----------------------------------------------*/

.section-container {
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  max-width: 1000px;
}

.section-title {
  color: #007bff;
  font-size: 24px;
  margin-bottom: 0px;
}

.section-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.image-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.slider-images {
  display: flex;
  transition: transform 0.5s ease;
}

.image-card {
  flex: 0 0 100%;
  padding: 10px;
  transition: transform 0.3s ease;
}

.image-card img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.image-card.active img {
  transform: scale(1.1);
}

.pagination-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pagination-dot {
  height: 9px;
  width: 9px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-dot.active {
  background-color: #30b4f1;
}

@media (max-width: 600px) {
  .pagination-dot {
    height: 5px;
    width: 5px;
    margin: 0 3px;
  }
}

/*----------------------------------------------- section 5 ----------------------------------------------*/
.section5 {
  font-size: 24px;
  font-weight: bold;
  color: #30B4F1;
  text-align: center;
  /* تعديل النص ليكون في المنتصف */
  margin-bottom: 20px;
  margin-top: 50px;
}

.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* عناصر تتمركز أفقيًا */
  align-items: center;
  /* عناصر تتمركز عموديًا */
  gap: 80px;
  /* مسافة بين البطاقات */
  padding: 20px;
  direction: rtl;
  width: 100%;
  margin: 0 auto;
  /* لضمان التوسيط */
}

.card {
  width: 320px;
  height: 340px;
  border-radius: 20px;
}

.card-front {
  position: relative;
  /* تعديل لتجنب مشاكل المحاذاة */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #A1DEFA;
  color: #214D6D;
}

.card-front:hover {
  background-color: #30B4F1;
  color: white;
  box-shadow: 5px 10px 30px 10px lightgray;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front img {
  width: 100%;
  height: 80%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card-front h3 {
  font-size: 0.8em;
}

.card-front p {
  font-size: 0.7em;
}

/* التصميم للشاشات الصغيرة */
@media (max-width: 600px) {
  .card {
    width: 250px;
    height: 300px;
    margin-bottom: 20px;
  }

  .card-section {
    justify-content: center;
    /* التأكد من أن العناصر تتمركز في الشاشات الصغيرة */
  }

  .card-front h3 {
    font-size: 0.5em;
  }

  .card-front p {
    font-size: 0.4em;
  }
}

/*----------------------------------------------- section6 ----------------------------------------------*/

.title {
  color: #30b4f1;
  font-size: 28px;
  font-weight: bold;
}

.t {
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.teach {
  border: 1px solid lightgray;
  height: 250px;
  width: 200px;
  border-radius: 30px;
}

.teach:hover {
  box-shadow: 5px 10px 30px 10px lightgray;
  background-color: #30b4f1;
}

.girl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-top: 30px;
  justify-content: center;
}

.sec3 p {
  font-size: 20px;
  color: #28696a;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 1400px) {
  .title {
    font-size: 16px;
    align-content: center;
  }

  .subtitle {
    font-size: 12px;
  }

  .t {
    margin-top: 20px;
  }
}

@media (max-width: 680px) {
  .section3 {
    margin: 20px;
  }
}

/*----------------------------------------------- section7 ----------------------------------------------*/

.container {
  max-width: 1000px;
  margin: 10px auto;
  padding: 10px;
  background-color: #fff;
  text-align: right;
  direction: ltr;
  background-color: rgba(255, 255, 255, 0);
}

/* تنسيق العنوان والصورة */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header img {
  max-width: 450px;
}

.content h3 {
  color: #30b4f1;
  font-size: 16px;
  font-weight: bold;
}

.content p {
  line-height: 1.6;
}

.content ul {
  list-style-type: none;
  padding: 0;
}

.content li {
  margin-bottom: 10px;
}

.content li a {
  color: #0066cc;
  text-decoration: none;
}

.content li a:hover {
  text-decoration: underline;
}

/* إعدادات الاستجابة */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .header img {
    max-width: 200px;
    margin-bottom: 15px;
  }

  .content {
    margin-right: 30px;
  }
}

/*----------------------------------------------- FOOTER ----------------------------------------------*/

.footer {
  background-color: #214d6d;
}

.footer-link {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.footer-text {
  font-size: 1rem;
  font-weight: bold;
  color: #1fa2ff;
}

.footer-icon {
  color: white;
  font-size: 1.2rem;
}

.footer-icon:hover {
  color: #ddd;
}

.footer .img {
  position: relative;
  left: 30px;
}

@media (max-width: 586px) {
  .footer {
    font-size: smaller;
  }

  .footer .col-md-6 {
    margin-top: 15px;
  }

  .footer .img {
    position: relative;
    left: 140px;
  }

  .footer-icon {
    margin-top: 5px;
  }
}

/*----------------------------------------------- الخط الفاصل بين السكشنات ----------------------------------------------*/
.div {
  width: 100%;
  height: 40px;
  background-color: #28658d;
  text-align: center;
  color: white;
  border-radius: 80px;
  margin-top: 100px;
  margin-bottom: 60px;
}

.div h2 {
  color: white;
}