
@media (max-width: 768px) {
  .video_section {
    height: auto;
  }
}
.video{
   
    width: 100%;
    object-fit: cover;
}

.video_section video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
  background-size: cover;
}


.hero {
  height: 90vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero .header-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}
/******************************************/
.paragraph {
  margin: 0 5vw;
  
  width: 90%;
  background: white;
  color: #264291;
  padding: 20px;
  
  font-size: 1rem;
}

p{
  margin: 0 5vw;
  
  width: 90%;
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 1rem;
  
}

@media (max-width: 768px) {
  
  p{
  margin: 0 5vw;
  
  width: 90%;
  display: flex;
  justify-content: center;
  margin-top: 0;
  
  
}

}

@media (max-width: 768px) {
  .paragraph p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
}


.p1{
font-size: 20px;

}
/*****************السلايدر********************/
.carousel-item img {
    height: 500px;
    object-fit: cover;
  }
  @media (max-width: 768px) {
    .carousel-item img {
      height: 250px;
    }
  }
  
/* زر التنقل العام */
.carousel-control-prev.custom-nav,
.carousel-control-next.custom-nav {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  top: 10%; /* نزلناهم شوي لتحت */
  transform: translateY(-50%);
  z-index: 2;
}
@media (max-width: 768px) {
  .carousel-control-prev.custom-nav,
.carousel-control-next.custom-nav {
  z-index: -2;
  }
}

/* موقع الزرين */
.carousel-control-prev.custom-nav {
  left: 10px;
}

.carousel-control-next.custom-nav {
  right: 10px;
}

/* شكل السهم */
.custom-arrow {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
}
.arrow-left {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 8 8'%3E%3Cpath d='M3.5 0L4.91 1.41 2.33 4 4.91 6.59 3.5 8l-4-4 4-4z'/%3E%3C/svg%3E");
}
.arrow-right {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 8 8'%3E%3Cpath d='M4.5 0L3.09 1.41 5.67 4 3.09 6.59 4.5 8l4-4-4-4z'/%3E%3C/svg%3E");
}

/*******************الأقسام*****************/
.lab-section {
    min-height: 400px;
    display: flex;
    align-items: center;
  }
  @media (max-width: 768px) {
    .lab-section .row {
      flex-direction: column !important;
    }
  }
  /* خلفيات الأقسام */
  .section-blue {
    background-color: white;
  }
  .section-white {
    background-color:#99A6CB;
  }
  .index_text{
  color: #284392;
  }
  .index_text1{
    color: white;
  }
  /* محتوى النص */
  .text-box {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* العنوان داخل النص */
  .text-box h3 {
    margin-bottom: 0;
    text-align: center;
    padding: 20px ;
  }
  /* النص */
  .text-box p {
    padding: 20px 50px;
    line-height: 1.8;
  }

  .lab-section .text-box {
    text-align: start;
  }

  @media (max-width: 768px) {
    .lab-section .text-box {
      padding: 1.5rem 1rem;
      text-align: center;
    }
  }

  
  @media (max-width: 768px) {
    .text-box {
      padding: 20px;
    }
    .text-box p {
      padding: 10px;
    }
  }
  /* الصور */
  .object-fit-cover {
    object-fit: cover;
    height: 100%;
  }
  /* حركات */
  .animate-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out forwards;
  }
  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .animate-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
  }
  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  /****************************************/

  /* صور الأقسام */
.lab-section img {
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* زر السلايدر على الشاشات الصغيرة */
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

@media (max-width: 768px) {
  .custom-nav {
    width: 15%;
  }
  .carousel-item img {
    height: auto;
  }
}

