

/********الأقسام الثلاثة*******/
.section {
  position: relative;
  height: 70vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* طبقة شفافية */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;     /* 🟢 مفقودة */
height: 100%;    /* 🟢 مفقودة */
background: rgb(0 0 0 / 27%);
z-index: 1;
}
.content-box {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  width: 70%;
}
.animate-title {
  color: #274391;
  font-size: 30px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideFromLeft 1s ease-out forwards;
  font-weight: bold;
}
.animate-paragraph {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-40px);
  animation: slideFromTop 1s ease-out forwards;
}
.animate-paragraph:nth-of-type(1) {
  animation-delay: 0.5s;
}
.animate-paragraph:nth-of-type(2) {
  animation-delay: 1s;
}
@keyframes slideFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/********** العنوان الرئيسي **********/
.main-title {
  background-color: #fff;
  font-size: 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #264291;
}

.line-reveal {
  overflow: hidden;
}

.line-reveal::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background:#264291;
  top: 0;
  left: 0;
  animation: revealLine 1s ease-out forwards;
  z-index: 1;
}

/* كشف تدريجي من اليسار لليمين */
@keyframes revealLine {
  0% {
    right: 0;
    width: 100%;
  }
  100% {
    right: 100%;
    width: 0%;
  }
}
/***********الأقسام الخمسة************/
.lab-section {
  min-height: 400px;
  display: flex;
  align-items: center;
}
/* خلفيات الأقسام */
.section-blue {
  background-color: #264291;
}
.section-white {
  background-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;
}
/* الصور */
.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);
  }
}
/**********  فديو الخلفية ******/
.video-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-text {
  text-align: start;
  color: white;
  padding: 60px 40px;
  font-size: 20px;
  width: 80%;
  border-radius: 10px;
  transition: transform 1s ease-out;
}
.scroll-up-on-scroll {
  transform: translateY(0);
  transition: transform 1s ease-out;
}
.scroll-up-on-scroll.scrolled {
  transform: translateY(-100px);
}
/*********السلايدر********/
.carousel-item img {
  height: 500px;
  object-fit: cover;
}

/*********************************************************************************/