/********** Template CSS **********/
:root {
    --primary: #2266e4;
    --secondary: #fc1930;
    --light: #F6F4F9;
    --dark: #04000B;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* لضمان أن الحواف padding والحدود لا تتجاوز العرض */
    font-family: "Rubik", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* منع التمرير الأفقي */
}

.container {
    width: 100%;
    max-width: 100%; /* ضمان أن العناصر لا تتجاوز عرض الشاشة */
    overflow-x: hidden;
    padding: 15px;
}

/* تأكد من أن كل الصور والجداول أو العناصر التي قد تسبب تمدد الصفحة لا تتجاوز العرض */
img, table, iframe {
    max-width: 100%;
    height: auto;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 600 !important;
    color: #1f59c6;
    font-family: "Rubik", sans-serif;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
    color: #fc1930;
    font-family: "Rubik", sans-serif;
}

h5,
h6,
.fw-medium {
    font-weight: 500 !important;
    font-family: "Rubik", sans-serif;
}

p{
    font-weight: 550;
    font-size: 18px;
    font-family: "Rubik", sans-serif;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


.feature1 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-align: right;
}

.icon1 {
    font-size: 24px;
    margin-left: 10px;
    color: #fc1930 /* يمكنك تغيير اللون إذا أردت */
    
}

span {
    font-size: 24px;
    color: #ffffff;
}



/* (A) FIXED WRAPPER */
.hwrap {
    overflow: hidden; /* HIDE SCROLL BAR */
    background: #373d99;
  }
   
  /* (B) MOVING TICKER WRAPPER */
  .hmove { display: flex; }
  
  /* (C) ITEMS - INTO A LONG HORIZONTAL ROW */
  .hitem {
    flex-shrink: 0;
    width: fit-content;
    height: 40px;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: "----";
    padding-right: 50px;
    padding-left: 50px;

  }
   
  /* (D) ANIMATION - MOVE ITEMS FROM RIGHT TO LEFT */
  /* 4 ITEMS -400%, CHANGE THIS IF YOU ADD/REMOVE ITEMS */
  @keyframes tickerh {
    0% { transform: translate3d(-500%, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
  }
  .hmove { animation: tickerh linear 37s infinite; }
  .hmove:hover { animation-play-state: paused; }



/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-size: 10px;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--light) !important;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-nav .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    .navbar-light .btn {
        color: var(--dark);
        background: #FFFFFF;
    }

    .sticky-top.navbar-light .btn {
        color: var(--dark);
        background: var(--secondary);
    }
}

.navbar-toggler .fas.fa-bars {
    font-size: 24px;
    color: var(--dark);
}



.image-container {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    top: -100px;
}

.background {
    position: absolute;
    top: -50px;
    left: 0;
    padding: 0px 100px 0px 0px;
    margin: 0;
    width: 500px;
    height: 100%;
    background-size: cover; /* تغطية الحاوية بالكامل بالصورة */
    background-position: center; /* وضع الصورة في المنتصف */
    transition: background-image 1.5s ease, opacity 1.5s ease;
    z-index: 1; /* الخلفية تبقى في الخلف */
}

.image {
    position: absolute;
    top: 30px;
    left: 0;
    padding: 0;
    padding-left: 40px;
    margin: 0;
    width: 400px;
    height: 80%;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 1.5s ease, opacity 1.5s ease;
    z-index: 2; /* الصور تبقى فوق الخلفية */
}

@media (max-width: 991.98px) {
        .background {
            position: absolute;
            top: -25px;
            left: 0%;
            padding: 100px 100px 0px 300px;
            margin: 0;
            width: 50%;
            height: 70%;
            background-size: cover; /* تغطية الحاوية بالكامل بالصورة */
            background-position: center; /* وضع الصورة في المنتصف */
            transition: background-image 1.5s ease, opacity 1.5s ease;
            z-index: 1; /* الخلفية تبقى في الخلف */
        }

        .image {
            position: absolute;
            top: 35px;
            left: 40px;
            padding: 0;
            padding-left: 60px;
            margin: 0;
            width: 70%;
            height: 70%;
            opacity: 0;
            transform: scale(0.5);
            transition: transform 1.5s ease, opacity 1.5s ease;
            z-index: 2; /* الصور تبقى فوق الخلفية */
        }

        .image-container{
            width: 100%;
            top: -40px;
        }

        .image-container img{
            width: 55%;
            height: 55%;
        }


        .feature1 {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            text-align: right;
        }
        
        .icon1 {
            font-size: 18px;
            margin-left: 10px;
            color: #fc1930 /* يمكنك تغيير اللون إذا أردت */
            
        }
        
        span {
            font-size: 18px;
            color: #ffffff;
        }

        .h1-header{
            margin-top: -240px;
            padding-top: 20px;
            padding-bottom: 20px;
          

        }
}

.h1-header{
    padding-top: 40px;
}

.image.active {
    opacity: 1;
    transform: scale(1);
}

/*** Hero Header ***/
.hero-header {
    margin-bottom: 6rem;
    padding: 6rem 0;
    height: 850px;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png),
        url(../img/bg-bottom.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center,
        center bottom;
    background-repeat: no-repeat;
}


@media (max-width: 991.98px) {
    .hero-header {
        padding: 0.5rem 0 9rem 0;
        height: 1000px;
    }
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-transform: uppercase;
}

.section-title span:first-child,
.section-title span:last-child {
    position: relative;
    display: inline-block;
    margin-right: 30px;
    width: 30px;
    height: 2px;
}

.section-title span:last-child {
    margin-right: 0;
    margin-left: 30px;
}

.section-title span:first-child::after,
.section-title span:last-child::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 2px;
    top: 0;
    right: -20px;
}

.section-title span:last-child::after {
    right: auto;
    left: -20px;
}

.section-title.text-primary span:first-child,
.section-title.text-primary span:last-child,
.section-title.text-primary span:first-child::after,
.section-title.text-primary span:last-child::after {
    background: var(--primary);
}

.section-title.text-secondary span:first-child,
.section-title.text-secondary span:last-child,
.section-title.text-secondary span:first-child::after,
.section-title.text-secondary span:last-child::after {
    background: var(--secondary);
}

.section-title.text-white span:first-child,
.section-title.text-white span:last-child,
.section-title.text-white span:first-child::after,
.section-title.text-white span:last-child::after {
    background: #FFFFFF;
}


/*** Feature ***/
.feature-item {
    transition: .5s;
}

.feature-item:hover {
    margin-top: -15px;
}


/*** About ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Fact ***/
.fact {
    margin: 6rem 0;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center;
    background-repeat: no-repeat;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: var(--light);
    overflow: hidden;
    transition: .5s;
}

.service-item:hover {
    margin-top: -15px;
    padding-bottom: 60px;
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/blob-primary.png) center center no-repeat;
    background-size: contain;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--dark);
    background: url(../img/blob-secondary.png) center center no-repeat;
    background-size: contain;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

.service-item a.btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px 40px 0 0;
    transition: .5s;
    z-index: 1;
}

.service-item a.btn:hover {
    color: var(--dark);
    background: var(--secondary);
}

.service-item:hover a.btn {
    bottom: 0;
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #164292bc;
    transition: .5s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}


/*** Newsletter ***/
.newsletter {
    margin: 6rem 0;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center;
    background-repeat: no-repeat;
}


.select-menu{
    margin: auto;
    padding: auto;
    text-align: center;
    max-width: 400px;
  }
  .select-menu .select-btn{
      display: flex;
      height: 55px;
      background: #fff;
      padding: 20px;
      font-size: 18px;
      font-weight: 400;
      border-radius: 8px;
      align-items: center;
      cursor: pointer;
      justify-content: space-between;
      box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
  .select-btn img{
      font-size: 15px;
      transition: 0.3s;
      text-align: right;
  }
  .select-menu.active .select-btn i{
      transform: rotate(-180deg);
  }
  .select-menu .options{
      position: relative;
      padding: 20px;
      margin-top: 10px;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 0 3px rgba(0,0,0,0.1);
      display: none;
      
  }
  .select-menu.active .options{
      text-align: right;
  
      display: block;
  }
  .options .option{
      display: flex;
      height: 55px;
      cursor: pointer;
      padding: 0 16px;
      border-radius: 8px;
      align-items: center;
      background: #fff;
     min-width: 350px;
  }
  .options .option:hover{
      background: #F2F2F2;
  }
  .option i{
      font-size: 25px;
      margin-right: 12px;
    
  }
  .option .option-text{
      font-size: 18px;
      color: #333;
  }
  
  

/*** Testimonial ***/

.testimonial-carousel .testimonial-item {
}

.testimonial-carousel .owl-nav {
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 60px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.image-box {
    background-color: #ece3da; /* اللون الأزرق للصندوق */
    width: flex; /* العرض الثابت للصندوق */
    height: 250px; /* الارتفاع الثابت للصندوق */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* لجعل الصندوق في المنتصف */
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* لضبط حجم الصورة بحيث تتناسب مع الصندوق */
}

.testimonial-item{
    background-color: #ece3da;
}

@media (min-width: 991.98px) {

    .testimonial-carousel {
        padding: 0;
        margin: 0 auto; /* يجعل العنصر في المنتصف */
        text-align: center;
        width: 100%; /* تحديد عرض العنصر */
    }
    
    .testimonial-carousel .owl-nav {
        display: flex;
        justify-content: center;
    }
    
    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        margin: 0 12px;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        background: var(--light);
        border-radius: 60px;
        font-size: 22px;
        transition: .5s;
    }
    
    .testimonial-carousel .owl-nav .owl-prev:hover,
    .testimonial-carousel .owl-nav .owl-next:hover {
        color: #FFFFFF;
        background: var(--primary);
        box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    }
    

}


/*** Team ***/
.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    margin-top: 6rem;
    padding-top: 9rem;
    background:
        url(../img/bg-top.png),
        url(../img/map.png);
    background-position:
        center top,
        center center;
    background-repeat: no-repeat;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
    font-size: 30px;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
    color: var(--secondary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--secondary);
}

/*=====================================================
/*=====================================================
   START ABOUT PAGE
   VIDEO FEATURES CSS 
======================================================*/

.videoviemo {
    position: relative;
    z-index: 5; /* اجعل الفيديو فوق الخلفية */
}

.embed-responsive-item {
    float: left;
    margin-left: -80px;
    padding-left: -200px;
    height: 300px;
    width: 450px;
    position: relative; /* تأكد أن الفيديو يستخدم position relative */
    z-index: 5; /* تأكد من أن الفيديو فوق الخلفية */
}

@media screen and (min-width: 768px) {
    .embed-responsive-item {
        float: left;
        margin-left: -80px;
        padding-left: -200px;
        height: 250px;
        width: 350px;
        position: relative; /* تأكد أن الفيديو يستخدم position relative */
        z-index: 5; /* تأكد من أن الفيديو فوق الخلفية */
    }
}

#video-feature {
    position: relative;
}

.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* غطّ العنصر بالكامل عرضًا */
    height: 100%; /* غطّ العنصر بالكامل ارتفاعًا */
    background-color: rgba(34, 102, 228, 0.9); /* خلفية زرقاء مع شفافية */
    z-index: 1; /* ضع الخلفية تحت الفيديو */
}

.video {}

.video i {}

.feature {
    position: relative;
    z-index: 5; /* تأكد من أن المحتوى النصي أعلى من الخلفية */
}

.feature .feature-title {}

.feature .feature-title h3 {
    text-align: right;
    font-size: 36px;
    color: #fff;
    padding-bottom: 15px;
}

.feature ul li .singel-feature {
    padding-top: 55px;
    overflow: hidden;
}

.singel-feature .icon {
    float: right;
    margin-left: 10px;
    font-size: 40px;
    color: #f8011a; /* لون الأيقونة */
}


.feature ul li .singel-feature .cont {
    width: 78%;
    float: left;
    overflow: hidden;
}

.feature ul li .singel-feature .cont h4 {
    text-align: right;
    font-size: 24px;
    color: #f8011a;
    padding-bottom: 15px;
}

.feature ul li .singel-feature .cont p {
    text-align: right;
    color: #fff;
}





.video-carousel1 {
    margin: 20px auto;
    max-width: 90%;
}

.carousel-wrapper1 {
    position: relative;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-slideshow1 {
    text-align: center;
}

.video-slider1 {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-wrap: nowrap;
}

.video-slider1 video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
    flex-shrink: 0;
}

.carousel-arrows1 {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

#carousel-prev,
#carousel-next {
    cursor: pointer;
    color: #333;
    pointer-events: all;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    font-size: 24px; /* حجم الأسهم الافتراضي */
}

#carousel-prev:hover,
#carousel-next:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
}

@media only screen and (max-width: 768px) {
    .video-slider {
        flex-direction: column;
    }

    .carousel-arrows1 {
        display: flex;
    }

    #carousel-prev,
    #carousel-next {
        font-size: 18px; /* حجم الأسهم على الشاشات الصغيرة */
        padding: 8px; /* تقليل الحشوة على الشاشات الصغيرة */
    }
}

@media only screen and (min-width: 769px) {
  .video-carousel1 {
      margin: 20px auto;
      max-width: 50%;
}
}

