:root {
  --main-color: #02aeef;
  --second-color: #ffffff;
  --third-color: #002e5b;
  --fourth-color: #9d9fa2;
  --placeholder-color: #a1a1a1;
  --box-shadow: 0 8px 32px 0 rgba(2, 174, 239, 0.18);
}

@media (max-width: 576px) {
  .offcanvas-body .nav-item.dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }

  .offcanvas-body .nav-item.dropdown:last-child {
    border-bottom: none;
  }

  .offcanvas-body .dropdown-menu-list {
    background-color: rgba(2, 174, 239, 0.05);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    /* border: 1px solid rgba(2, 174, 239, 0.1); */
  }

  .offcanvas-body .dropdown-menu-list .dropdown-item {
    color: var(--third-color);
    font-weight: 500;
    border-bottom: 1px solid rgba(2, 174, 239, 0.1);
  }

  .offcanvas-body .dropdown-menu-list .dropdown-item:last-child {
    border-bottom: none;
  }

  .offcanvas-body .dropdown-menu-list .dropdown-item:hover {
    background-color: rgba(2, 174, 239, 0.1);
    color: var(--main-color);
  }

  /* تحسين مظهر الأيقونة */
  .offcanvas-body .iconToggle {
    color: var(--main-color);
    font-size: 0.8rem;
  }

  /* تحسين مظهر زر التبديل */
  .offcanvas-body #products-toggle {
    background-color: rgba(2, 174, 239, 0.1);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
  }

  .offcanvas-body #products-toggle:hover {
    background-color: rgba(2, 174, 239, 0.2);
  }
  .hero-slider-pages .text-slider h1 {
    font-size: 1rem !important;
    color: var(--second-color) !important;
    font-weight: bold !important;
    text-wrap: nowrap;
  }
 
    .timeline {
      margin-left: 8px;
      padding-left: 10px;
      border-radius: 8px;
    }
    .timeline::before {
      left: -4px;
      top: 18px;
      bottom: 18px;
      width: 5px;
    }
    .timeline-item {
      padding: 18px 0 18px 12px;
      border-radius: 8px;
    }
    .timeline-item::before {
      left: -28px;
      width: 16px;
      height: 16px;
      border-width: 3px;
    }
    .timeline-item span:last-child {
      margin-left: 8px;
      font-size: 1rem;
    }
  
  
  
  /* تنسيقات خاصة بالهواتف المحمولة */
  .dropdown-menu-list-one,
  .dropdown-menu-list-two {
    position: static;
    display: none;
    margin: 0;
    padding: 0;
    width: 100%;
    /* border-radius: 0.5rem; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    list-style: none;
  }

  /* إظهار القائمة عند click على الموبايل */
  .dropdown-one.active .dropdown-menu-list-one,
  .dropdown-two.active .dropdown-menu-list-two {
    display: block;
    animation: slideDown 0.3s ease;
  }

  /* إخفاء hover على الموبايل */
  .dropdown:hover .dropdown-menu-list-one,
  .dropdown:hover .dropdown-menu-list-two {
    display: none;
  }

  .dropdown-menu-list-one .dropdown-item,
  .dropdown-menu-list-two .dropdown-item {
    padding: 1rem 1.5rem;
    color: var(--third-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .dropdown-menu-list-one .dropdown-item:last-child,
  .dropdown-menu-list-two .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-menu-list-one .dropdown-item:hover,
  .dropdown-menu-list-two .dropdown-item:hover {
    background-color: rgba(2, 174, 239, 0.1);
    color: var(--main-color);
    padding-left: 2rem;
  }

  .dropdown-menu-list-one .dropdown-item:active,
  .dropdown-menu-list-two .dropdown-item:active {
    background-color: rgba(2, 174, 239, 0.2);
    transform: scale(0.98);
  }

  /* تحسين مظهر زر القائمة المنسدلة على الموبايل */
  #products-toggle {
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }

  #products-toggle:hover {
    background-color: rgba(2, 174, 239, 0.1);
    border-radius: 0.25rem;
  }

  .iconToggle {
    transition: transform 0.3s ease;
  }

  /* تحسين مظهر القائمة في offcanvas */
  .offcanvas-body .dropdown-menu-list {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .offcanvas-body .dropdown-menu-list .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* إضافة انيميشن للقائمة المنسدلة */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1200px) {
  .dropdown-menu-list-one,
  .dropdown-menu-list-two {
    position: static;
    /* إعادة الضبط للشاشات الصغيرة */
    box-shadow: none;
    display: none;
    /* background-color: var(--second-color); */
    margin: 0;
    padding: 0 20px;
    border-radius: 0.5rem;
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
  }

  /* إظهار القائمة عند click على الشاشات المتوسطة */
  .dropdown-one.active .dropdown-menu-list-one,
  .dropdown-two.active .dropdown-menu-list-two {
    display: block;
  }

  /* إخفاء hover على الشاشات المتوسطة */
  .dropdown:hover .dropdown-menu-list-one,
  .dropdown:hover .dropdown-menu-list-two {
    display: none;
  }

  .dropdown-menu-list-one .dropdown-item,
  .dropdown-menu-list-two .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--third-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .dropdown-menu-list-one .dropdown-item:last-child,
  .dropdown-menu-list-two .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-menu-list-one .dropdown-item:hover,
  .dropdown-menu-list-two .dropdown-item:hover {
    background-color: rgba(2, 174, 239, 0.1);
    color: var(--main-color);
    padding-left: 1.5rem;
  }

  .dropdown-menu-list-one .dropdown-item:active,
  .dropdown-menu-list-two .dropdown-item:active {
    background-color: rgba(2, 174, 239, 0.2);
  }

  /* تحسين مظهر زر القائمة المنسدلة */
  #products-toggle {
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }

  #products-toggle:hover {
    background-color: rgba(2, 174, 239, 0.1);
    border-radius: 0.25rem;
  }

  .iconToggle {
    transition: transform 0.3s ease;
    cursor: pointer;
    color:var(--main-color)
  }

  /* تحسين مظهر القائمة في offcanvas */
  .offcanvas-body .dropdown-menu-list {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .offcanvas-body .dropdown-menu-list .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}


@media (max-width: 992px) {
  .background-video video{
    border-radius: 0.6rem !important;
  }
  .background-video .overlay {
    border-radius: 0.6rem !important;
  }
  .hero-slider .container-fluid {
    border-radius: 0.6rem !important;
  }

  .hero-slider .item img {
    border-radius: 0.6rem !important;
  }

  .hero-slider .item .overlay {
    border-radius: 0.6rem !important;
  }
  .hero-slider-pages .container-fluid {
    border-radius: 0.6rem !important;
  }
  .hero-slider-pages .overlay {
    border-radius: 0.6rem !important;
  }
  /* إخفاء تأثير hover على الشاشات الصغيرة */
 
}

@media (max-width: 768px) {
  .footer-section .container-fluid{
    border-radius: 0rem !important;
  }
  .team-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    gap: 18px;
    padding: 24px 10px;
  }
  .team-img {
    margin: 0 auto;
  }
  .team-info {
    width: 100%;
  }
  .vmv-block { flex-direction: column; gap: 18px;  }
  .vmv-icon { margin: 0 auto 10px auto; }
  .values-list { flex-direction: column; gap: 18px; }
  .hero-slider-pages .container-fluid {
    border-radius: 0rem !important;
  }
  .hero-slider-pages .overlay {
    border-radius: 0rem !important;
  }
  .slider-content .box-slider {
    position: absolute;
    bottom: 0px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background-color: var(--main-color);
    text-align: center;
    width: 80%;
    max-width: 800px;
    /* padding: 2rem; */
  }

  .hero-slider .container-fluid {
    border-radius: 0rem !important;
  }

  .blogs .container-fluid {
    border-radius: 0rem !important;
  }

  .about .container-fluid {
    border-radius: 0rem !important;
  }

  .hero-slider .item img {
    border-radius: 0rem !important;
  }

  .hero-slider .item .overlay {
    border-radius: 0rem !important;
  }
  .background-video video{
    border-radius: 0rem !important;
  }
  .background-video .overlay {
    border-radius: 0rem !important;
  }
  footer .logo-footer {
    text-align: center;
  }

  footer img {
    width: 180px;
  }

  .hero-slider-pages {
    width: 100%;
    height: 60vh !important;
  }

  .hero-slider-pages .text-slider h1 {
    font-size: 2rem !important;
    color: var(--second-color) !important;
    font-weight: bold !important;
    text-wrap: wrap;
    padding-bottom: 30px;
  }
}

@media (max-width: 1200px) {
  .hero-slider .item {
    position: relative;
    height: 100vh;
    width: 100vw;
  }
}

@media (min-width: 992px) {
  .background-video video{
    border-radius: 0.7rem !important;
  }
  .background-video .overlay {
    border-radius: 0.7rem !important;
  }
  .hero-slider-pages .container-fluid {
    border-radius: 0.7rem !important;
  }
  .hero-slider-pages .overlay {
    border-radius: 0.7rem !important;
  }
  .about .container-fluid {
    border-radius: 0.7rem !important;
  }

  .blogs .container-fluid {
    border-radius: 0.7rem !important;
  }
  .footer-section .container-fluid{
    border-radius: 0.7rem !important;
  }
  .hero-slider .item img {
    border-radius: 0.7rem !important;
  }

  .hero-slider .item .overlay {
      border-radius: 0.7rem !important;
  }
}

@media (min-width: 1200px) {
  .hero-slider-pages .text-slider h1 {
    font-size: 4rem;
    color: var(--second-color) !important;
    font-weight: bold !important;
    text-wrap: nowrap;
  }
  .nav-link {
    position: relative;
  }

  .nav-link:hover::before {
    width: 100%;
  }

  .nav-link.active {
    position: relative;
    font-weight: 700 !important;
  }

  /* تحسين تنسيقات القائمة المنسدلة */
  .dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255);
    border-radius: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* إظهار القائمة عند hover على العنصر الأب */
  .dropdown:hover .dropdown-menu-list {
    display: flex;
  }

  /* تنسيق عناصر القائمة المنسدلة */
  .dropdown-menu-list .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--third-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu-list .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-menu-list .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--main-color) !important;
    padding-left: 1.5rem;
  }

  /* جعل القائمة المنسدلة جزءًا من التدفق الطبيعي */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  /* تنسيق عناصر القائمة المنسدلة */
  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    color: white; /* لون النص */
    border-bottom: 0.5px solid white;
  }

  .navbar-nav .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: 600;
  }
}

/* تنسيقات متجاوبة لقسم الأقسام */
@media (max-width: 768px) {
  .division-card {
    margin-bottom: 2rem;
  }
  
  .division-card .card-img-wrapper img {
    height: 200px !important;
  }
  
  .division-icon {
    width: 40px;
    height: 40px;
  }
  
  .division-icon i {
    font-size: 1rem !important;
  }
  
  .division-card .card-body {
    padding: 1.5rem !important;
  }
  
  .division-card h5 {
    font-size: 1.1rem;
  }
  
  .division-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .division-card {
    margin-bottom: 1.5rem;
  }
  
  .division-card .card-img-wrapper img {
    height: 180px !important;
  }
  
  .division-card .card-body {
    padding: 1rem !important;
  }
  
  .division-icon {
    width: 35px;
    height: 35px;
  }
  
  .division-icon i {
    font-size: 0.9rem !important;
  }
}
