body {
      font-family: 'Cairo', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f7f8fb;
      overflow-x: hidden;
    }

/* حركة دخول الشعار  */
.logo-intro-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.logo-intro {
  width: 150px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation: logoFadeZoomIn 0.4s ease-out forwards;
}

@keyframes logoFadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* نهاية دخول  الشعار */

/*شريط القوائم*/
  .navbar {
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; 
  background-color: #1e3a8a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-evenly; 
  flex-wrap: nowrap;
}

    .logo img {
      height: 70px;
      margin-right: 10px;
    }

    .navbar ul {
      list-style: none;
      display: flex;
      padding: auto;
      margin: 0;
      flex-wrap: wrap;
    }

    .navbar ul li {
      position: relative;
    }

    .navbar ul li a {
      color: #ffffff;
      font-weight: bold;
      text-decoration: none;
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background-color 0.3s, color 0.3s;
    }

    .navbar ul li a:hover {
      background-color: #ffffff;
      color: #1e3a8a;
      border-radius: 4px;
    }

    .dropdown {
      position: absolute;
      top: 40px;
      right: 0;
      background-color: #1e3a8a;
      min-width: 320px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease-in-out;
      z-index: 100;
      border-radius: 6px;
      padding: 10px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .dropdown a {
      color: black;
      font-size: 14px;
      padding: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      border-radius: 4px;
      font-weight: bold;
      transition: background-color 0.3s, color 0.3s;
    }

    .dropdown a:hover {
      background-color: #ffffff;
      color: #1e3a8a;
    }

    .navbar ul li:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

/* بداية تنسيق زر اللغة */
/* قائمة اللغة */
        .lang-dropdown {
            position: relative;
            display: inline-block;
        }
        .lang-dropdown-btn {
            background-color: #ffffff;
            color: #1e3a8a;
            padding: 10px 16px;
            font-size: 20px;
            border: none;
            border-radius: 10%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 30px;
            transition: background-color 0.3s ease;
        }
        .lang-dropdown-btn:hover {
            background-color: #163374;
        }
        .lang-dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 180px;
            margin-top: 5px;
            box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
            border-radius: 6px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            z-index: 1;
        }
        .lang-dropdown-content a {
            color: #333;
            padding: 10px 14px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background-color 0.3s ease;
        }
        .lang-dropdown-content a:hover {
            background-color: #f2f2f2;
        }
        .lang-dropdown.show .lang-dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        /* حجم الأعلام */
        .lang-dropdown-content .fi {
            font-size: 20px;
        }
/* نهاية تنسيق زر اللغة */


    @media (max-width: 768px) {
      .navbar {
        flex-direction: column;
        align-items: flex-start;
      }

      .navbar ul {
        flex-direction: column;
        gap: 5px;
        width: 100%;
      }

      .dropdown {
        
        display: none !important; /* إخفاء القائمة المنسدلة في الجوال */
      }
      .drphone {
        display: none !important;
      }

      .social-icons
       {
        display: none !important; /* إخفاء أزرار التواصل وزر اللغة */
      }
    }

   /* زر الهامبرقر */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
  margin-left: 10px;
}

/* عند تفعيل القائمة */
.navbar ul.active {
  display: flex !important;
}

/* تعديل في الـ media query */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: 20px;

  }

  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin-top: 10px;
  }

  .navbar ul.active {
    display: flex;
  }

  .dropdown {
    display: none !important; /* اختياري حسب الرغبة */
  }

  .social-icons,
  .lang-toggle {
    display: none !important;
  }

  /* تنسيق زر اللغة في الهاتف */
  .lang-dropdown-btn{
    position: fixed;
    top: 25px;
    left:45%;
    z-index: 1000;
    background-color: transparent;
    color:#ffffff;

  }
}

/*حل مشكلة ظهور الهامبرقر في الهاتف*/
.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 5%;
}

/* ترتيب في الجوال */
@media (max-width: 768px) {
  .navbar-header {
    flex-direction: row-reverse;
    width:100%;
  }
}
  .social-icons {
      display: flex;
      gap: 10px;
    }
  /*نهاية شريط القوائم*/



    
    /*تنسيق الاسلايدر*/
  .construction-slider,
    .construction-slider * {
      box-sizing: border-box;
      font-family: 'Cairo', sans-serif;
    }

    .construction-slider {
  position: relative;
  width: 100vw; /* مهم جدًا */
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
    }

    .construction-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .construction-slide.active {
      opacity: 1;
      z-index: 2;
    }

    .construction-text {
      position: absolute;
      top: 40%;
      right: 33%;
      transform: translateY(-50%);
      color:#1e3a8a;
      width: 500px;
      height:150px;
      margin: 0;
      background: rgba(255, 255, 255, 0.8);
      padding: 20px;
      border-radius: 12px;
      text-align: center;
      }

    .construction-text h2 {
      font-size: 2rem;
      margin-bottom: 10px;
      font-weight: bold;
    }

    .construction-text p {
      font-size: 18px;
      font-weight:bold;
      color:#000000;
      line-height: 1.6;
      margin: 0;
    }


    @media (max-width: 768px) {
       .construction-text {
      position: relative;
      top: 50%;
      right: 5%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.8);
      color: #0077b6;
      padding: 10px 5px;
      max-width: 350px;
      height:100px;
      border-radius: 10px;
      text-align: center;
    }
 .construction-text h2 {
      font-size: 1.4rem;
      margin-bottom: 10px;
      font-weight: bold;
    }
     .construction-text p {
      font-size: 15px;
      color:#000000;
      line-height: 1.6;
      margin: 0;
    }
    .construction-slider {
      position: relative;
      width: 100vw;
      height: 80vh;
      overflow: hidden;
    }
    }
    /*  نهاية الاسلايدر */


/*الحديث عن الشركة*/
 .company-section {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      padding: 15px 10px;
      width: 100%;
      margin: 30px auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      background-color: #1e3a8a;
      border-radius: 15px;
    }

    .company-text, .company-image {
      flex: 1 1 500px;
      opacity: 0;
    }

    .company-text {
      padding: 20px;
      text-align: right;
      transform: translateX(60px);
      transition: all 1s ease;
    }

    .company-image {
      display: flex;
      justify-content: center;
      align-items: center;
      transform: translateX(-60px);
      transition: all 1s ease;
    }

    .company-text.appear {
      opacity: 1;
      transform: translateX(0);
    }

    .company-image.appear {
      opacity: 1;
      transform: translateX(0);
    }

    .company-text h2 {
      font-size: 36px;
      color: #ffffff;
      margin-bottom: 20px;
      text-align: justify;
    }

    .company-text p {
      font-size: 18px;
      color: #e0e0e0;
      line-height: 1.8;
      text-align: justify;
    }

    .company-image img {
      width: 100%;
      max-width: 500px;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

   /* company on phone --------------------------------------------------------------------- */
      .phone-wrap {
          display: none;
      }

      /* على الشاشات الصغيرة (الهاتف) نعرضه */
      @media screen and (max-width: 768px) {
          .phone-wrap {
              display: block;
          }
          .company-section {
           display: none;

          }
      }

      .phone-wrap{
      width: 100%;
      margin:10px auto;
      padding:5px;
      background-color: #1e3a8a;
      box-shadow: 0 6px 18px rgba(10,20,40,0.15);
    }

    .phone-about{
      background-color: #1e3a8a;
      display:flex;
      gap:40px;
      align-items:center;
    }

    .phone-img-wrap{
      flex:0 0 46%;
      display:flex;
      justify-content:center;
    }
    .phone-about img{
      width:100%;
      max-width:520px;
      height:auto;
      display:block;
      border-radius:12px;
      border: 6px solid rgba(255,255,255,0.03);
      object-fit:cover;
    }

    .phone-txt{
      flex:1;
      font-weight:300;
      line-height:1.9;
      font-size:18px;
      text-align:right;
      padding:10px 0;
    }
    .phone-txt h2{
      margin:0 0 18px 0;
      font-weight:700;
      font-size:38px;
      color:#ffffff;
    }
    .phone-txt p{ color: #e6eefc; }

    @media (min-width:1000px){
      .phone-txt{ font-size:19px; line-height:2; }
    }

    @media (max-width:767px){
      .phone-wrap{ padding:18px; border-radius:8px; margin:12px; }
      .phone-about{
        flex-direction:column;
        gap:18px;
        align-items:stretch;
      }
      .phone-img-wrap{ order:-1; }
      .phone-about img{ max-width:100%; border-radius:10px; }
      .phone-txt h2{ font-size:28px; text-align:center; }
      .phone-txt{ text-align:center; font-size:16px; line-height:1.8; }
    }

    @media (max-width:420px){
      .phone-txt{ font-size:15px; line-height:1.7; }
      .phone-txt h2{ font-size:22px; }
    }
    /* company on phone --------------------------------------------------------------------- */

  /*تنسيق الرؤية والاهداف*/
      .custom-card-container {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      max-width: 1280px;
      margin: auto;
      padding: 1.5rem;
    }

    @media (min-width: 1024px) {
      .custom-card-container {
        flex-direction: row;
      }
    }

    .custom-card-item {
      background-color: #fff;
      border-radius: 1rem;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
      border: 1px solid #f1f1f1;
      transition: all 0.3s ease;
      padding: 1.5rem;
      flex: 1;
      text-align:center;
      justify-content: center;
    }

    .custom-card-item:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    .custom-card-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .custom-card-icon {
      padding: 0.75rem;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .custom-card-title {
      font-size: 1.125rem;
      font-weight: bold;
      color: #1f2937;
    }

    .custom-card-text {
      font-size: 0.875rem;
      line-height: 1.6;
      color: #4b5563;
    }

 /*تاسيس ارث*/
.erth-card {
  display: flex;
  flex-direction: row-reverse; /* ← تجعل الصورة على اليمين والنص على اليسار */
  background: #1e3a8a;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 95%;
  /* max-width: 1200px; */
  margin: 20px auto;
  padding: 10px;
}


    .erth-card:hover {
      transform: scale(1.01);
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .erth-text {
      flex: 1;
      padding: 30px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      color: #ffffff;
    }

    .erth-title {
      font-size: 28px;
      color: #ffffff;
      text-align: center;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .erth-title i {
      color: #ffffff;
      font-size: 24px;
    }

    .erth-paragraph {
      font-size: 16px;
      line-height: 1.9;
      color: #ffffff;
    }

    .erth-certifications {
      margin-top: 20px;
      display: flex;
      flex-direction: row;
      gap: 15px;
      flex-wrap: nowrap;
    }

    .erth-cert {
      display: flex;
      align-items: center;
      gap: 8px;
      background-color: #e8f0ff;
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 14px;
      color: #003366;
      white-space: nowrap;
    }

    .erth-cert i {
      color: #0d6efd;
    }

    .erth-image {
      width: 45%;
      min-height: 300px;
    }

    .erth-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
	border-radius: 10px;
    }

    @media (max-width: 768px) {
      .erth-card {
        flex-direction: column;
      }

      .erth-image {
        width: 100%;
        height: 250px;
      }

      .erth-text {
        padding: 5px;
      }

      .erth-certifications {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 5px;
      }

      .erth-cert {
        width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
      }
    }

/*تنسيق الممارسات*/
  .sustainability-section {
      background-color: #f2f7fb;
      padding: 50px 40px;
      display: flex;
      align-items: flex-start;
      gap: 30px;
      width: 100%;
      border: 2px solid #1565c0;
      border-radius: 0;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
      opacity: 0;
      transform: translateY(40px);
      animation: fadeInUp 1s ease-out forwards;
      box-sizing: border-box;
    }

    .sustainability-icon {
      font-size: 50px;
      color: #1565c0;
      flex-shrink: 0;
    }

    .sustainability-content h2 {
      margin-top: 0;
      font-size: 28px;
      color: #0d47a1;
    }

    .sustainability-content p {
      font-size: 18px;
      line-height: 1.8;
      color: #222;
      margin: 0;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

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

      .sustainability-icon {
        margin-bottom: 15px;
      }
    }


/* بداية تنسيق الخدمات */
.ser-section-title {
      text-align: center;
      font-size: 32px;
      color: #0d47a1;
      margin-bottom: 30px;
      margin-top:30px;
    }

    .ser-cards-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      max-width: 1600px;
      margin: 0 auto;
    }

    .ser-card {
      background: #ffffff;
      border-radius: 20px;
      flex: 0 0 20%;
      box-sizing: border-box;
      padding: 30px 20px;
      text-align: center;
      border: 1px solid #1565c0;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
      transition: all 0.4s ease-in-out;
      cursor: pointer;
    }

    .ser-card:hover {
      background-color: #e3f2fd;
      transform: translateY(-8px);
      box-shadow: 0 12px 25px rgba(21, 101, 192, 0.2);
    }

    .ser-card i {
      font-size: 36px;
      color: #1565c0;
      margin-bottom: 15px;
    }

    .ser-card h3 {
      font-size: 18px;
      color: #0d47a1;
      margin-bottom: 10px;
    }

    .ser-card a {
      display: inline-block;
      margin-top: 10px;
      color: #000000;
      text-decoration: none;
      font-size: 14px;
    }

    .ser-card a:hover {
      text-decoration: underline;
    }

    /* شاشات صغيرة - موبايل */
    @media (max-width: 768px) {
      .ser-card {
        flex: 0 0 90%;
        margin: 0 auto;
      }
    }

    /* شاشات متوسطة */
    @media (min-width: 769px) and (max-width: 1199px) {
      .ser-card {
        flex: 0 0 33.333%;
      }
    }

    /* شاشات كبيرة */
    @media (min-width: 1200px) {
      .ser-card {
        flex: 0 0 20%; /* 5 بطاقات في الصف */
      }
    }


/*تنسيق العداد*/
   .count-section {
  width: 100%;
  background: linear-gradient(to right, #6370e2, #1e3a8a);
  padding: 10px 10px;
  box-sizing: border-box;
  margin-top: 20px;
  text-align: center;
}

.count-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px; /* المسافة بين البطاقات */
  max-width: 1200px;
  margin: auto; /* لتوسيط المحتوى */
}

.count-box {
  flex: 1 1 calc(25% - 20px); /* 4 بطاقات في الصف */
  background-color: #002b63;
  color: #fff;
  padding: 40px 20px 30px;
  border-radius: 15px;
  text-align: center;
  border-bottom: 6px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  box-sizing: border-box;
  margin-top: 40px;
}

    .count-icon {
      width: 60px;
      height: 60px;
      background-color: #334d87;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: -70px auto 20px;
      font-size: 32px;
    }

    .count-icon .material-icons {
      color: white;
      font-size: 32px;
    }

    .count-number {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .count-label {
      font-size: 16px;
      color: #ddd;
    }

    /* وضع الجوال: كل بطاقة في سطر */
  @media (max-width: 992px) {
  .count-box {
    flex: 1 1 calc(50% - 20px);
  }
}

/* للشاشات الصغيرة: بطاقة واحدة في الصف */
@media (max-width: 576px) {
  .count-box {
    flex: 1 1 100%;
  }
}


/*تنسيق الشريط الاخباري*/
   .news-ticker {
      background: #004080;
      color: white;
      overflow: hidden;
      white-space: nowrap;
      box-sizing: border-box;
      padding: 10px 0;
      direction: ltr;
      position: relative;
      font-family: 'Cairo', sans-serif;
      margin-top: 10px;
    }

    .ticker-track {
      display: inline-block;
      white-space: nowrap;
      animation: ticker-loop 40s linear infinite;
    }

    @keyframes ticker-loop {
      0%   { transform: translateX(-100%); }
      100% { transform: translateX(0); }
    }

    .ticker-text {
      display: inline-block;
      padding-right: 50px; /* مسافة بين التكرارات */
      font-weight: bold;
      font-size: 1.1rem;
    }
/*نهاية الشريط الاخباري*/

/*عملائنا*/
.loop-slider-wrapper {
  overflow: hidden;
  max-width: 90%;
  margin: auto;
  direction: ltr;
}

.loop-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.loop-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
  box-sizing: border-box;
}

.loop-slide img {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: contain;      /* الصورة كاملة داخل الإطار */
  background: #fff;
}
 @media (max-width: 768px) {
.loop-slide img {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: contain;      /* الصورة كاملة داخل الإطار */
  background: #fff;
}
}
