*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
 }

  body {
    line-height: 1.7;
    background-color: #000000;
    color: #333;
    
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff00;
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: white;
    flex-direction: row-reverse;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
  }

  header.scrolled {
    background-color: #000000b5;
    box-shadow: 0 2px 2px #dbbb6300;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
  }
  
  .logo {
      width: 80px;
      height: auto;
      margin-left: 0%;
  }

  .logo img {
      width: 250%;
      height: auto;
      display: block;
  }

  nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
  }

  nav a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
  }
  
  #welcome-message {
      display: flex;
      top: 50px;
      left: 20px;
      font-size: 20px;
      font-weight: bold;
      color: #ffffff;
      background-color: #f3ac399b;
      padding: 5px 17px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      z-index: 1000;
  }
  
  nav a.active {
    position: relative;
  }

  nav a.active::after {
      content: "";
      position: absolute;
      bottom: -5px;
      right: 0;
      left: 0;
      height: 3px;
      background-color: #cca75f;
      border-radius: 2px;
  }

  nav a:hover {
    color: #cca75f;
  }

  .hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: 25%;
  }

  .hero-content h1 {
    font-size: 50px;
    margin-bottom: 15px;
    margin-left:145vh;
  }

  .hero-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-left:145vh;
  }

  .btn-primary {
    background-color: #f3ac39;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s ease;
  }

  .btn-primary:hover {
    background-color: #d38e1e;
  }
  h1{
    color: #cca75f;
    font-weight: 1000;
    text-shadow: 0 2px 4px rgba(243, 172, 57, 0.3);
  }

  /* قسم النص والصور التفاعلية المحسن */
  .interactive-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    position: relative;
  }

  .interactive-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
  }

  .text-content {
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
  }

  .text-content.animate {
    opacity: 1;
    transform: translateX(0);
  }

  .text-content h2 {
    font-size: 48px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #dbbb63, #cca75f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.6s ease;
  }

  .dynamic-text {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
  }

  .dynamic-text.fade-in {
    opacity: 1;
    transform: translateY(0);
  }

  .dynamic-text p {
    margin-bottom: 20px;
    transition: all 0.6s ease;
  }

  .highlight-text {
    color: #dbbb63;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(243, 172, 57, 0.3);
  }

  .images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    position: relative;
  }

  .floating-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    cursor: pointer;
    border: 3px solid rgba(243, 172, 57, 0.2);
    background: linear-gradient(135deg, rgba(243, 172, 57, 0.05), rgba(219, 187, 99, 0.05));
  }

  .floating-image.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .floating-image:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform-origin: top left;
  }

  .floating-image:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-top: 40px;
    transform-origin: top right;
  }

  .floating-image:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    margin-top: -10px;
    transform-origin: center;
  }

  .floating-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.85) contrast(1.1) saturate(1.05);
  }

  .floating-image:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(243, 172, 57, 0.4);
    border-color: rgba(243, 172, 57, 0.6);
  }

  .floating-image:hover img {
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
    transform: scale(1.1);
  }

  .floating-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(243, 172, 57, 0.1) 0%, 
      rgba(219, 187, 99, 0.05) 50%, 
      transparent 100%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 1;
    border-radius: inherit;
  }

  .floating-image:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
      rgba(243, 172, 57, 0.2) 0%, 
      rgba(219, 187, 99, 0.1) 50%, 
      rgba(255, 255, 255, 0.05) 100%);
  }

  /* شريط التمييز للصورة النشطة */
  .floating-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f3ac39, #dbbb63);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    border-radius: 0 0 20px 20px;
  }

  .floating-image:hover::after {
    transform: scaleX(1);
  }

  /* تأثير جسيمات متحركة محسن */
  .floating-image .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
  }

  .floating-image:hover .particles {
    opacity: 1;
  }

  @keyframes particleFloat {
    0%, 100% { 
      transform: translateY(0px) scale(0.5); 
      opacity: 0.4; 
    }
    50% { 
      transform: translateY(-25px) scale(1.2); 
      opacity: 1; 
    }
  }

  /* تأثيرات الخلفية الشفافه للحركة */

.plans-section {
    background-image: url('/static/images/خلفية\ مخططاتنا.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* تأثير Parallax */
    padding: 120px 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh; /* ارتفاع كامل للشاشة */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plans-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: -1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-logo {
    text-align: center;
    margin: 30px 0 50px 0;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plans-logo img {
    max-width: 280px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}


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

/* تحسين للطباعة */
@media print {
    .plans-section {
        background-image: none;
        background-color: #f8f9fa;
        color: #000;
    }
    
    .plans-section::before,
    .plans-section::after {
        display: none;
    }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

  .modal video {
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    outline: none;
  }

  .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }
  
  .btn-secondary {
      position: absolute;
      bottom: 20px;
      right: 20px;
      background-color: rgba(0, 0, 0, 0.203);
      color: white;
      border: 2px solid #f3ac39;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 16px;
      text-decoration: none;
      z-index: 50;
      transition: background 0.3s ease;
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: #d38e1e;
  }
.user-dropdown {
    position: relative;
    display: inline-block;
    width: fit-content; /* للتأكد من أن العرض مناسب */
}

.welcome-btn {
   padding: 12px 20px;
   min-width: 10px;
   background-color: #ffffffa4;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   user-select: none;
   transition: all 0.3s ease;
   font-weight: 500;
   color: #333;
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welcome-btn:hover {
   background-color: #f8f9faa9;
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   transform: translateY(-1px);
}
.welcome-btn a {
  color: inherit;        /* يخلي اللون مثل النصوص العادية */
  text-decoration: none; /* يشيل الخط */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.798);
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: none;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes slideDown {
   from {
       opacity: 0;
       transform: translateY(-10px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.logout-btn {
   width: 100%;
   padding: 12px 16px;
   background: linear-gradient(135deg, #2e2e2ef5 0%, #4b4b4be7 100%);
   border: none;
   border-radius: 8px;
   cursor: pointer;
   font-size: 12px;
   color: rgb(255, 255, 255);
   transition: all 0.3s ease;
   font-weight: 500;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.logout-btn:hover {
   background: linear-gradient(135deg, #c82333de 0%, #a71e29d8 100%);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.logout-btn:active {
   transform: translateY(0);
   box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.logout-btn svg {
   transition: transform 0.3s ease;
}

.logout-btn:hover svg {
   transform: translateX(2px);
}


/* تعتيم الخلفية */
.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.2);
   z-index: 999;
   display: none;
}

.overlay.show {
   display: block;
   animation: fadeIn 1s ease;
}

@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}
/* قائمة المخططات المنسدلة - عريضة على طول الشريط */
/* قائمة المخططات المنسدلة */
.plans-dropdown {
   position: relative;
   display: inline-block;
}

.plans-dropdown > a {
   display: flex;
   align-items: center;
   gap: 8px;
   position: relative;
}

.dropdown-arrow {
   font-size: 14px;
   transition: all 0.3s ease;
   transform-origin: center;
}

.plans-dropdown.active .dropdown-arrow {
   transform: rotate(180deg);
   color: #cca75f;
}
/* التحكم بشريط القوائم المنسدله*/
.plans-dropdown-menu {
    display: none;
    position: fixed;
    top: 120px;
    left: 120px; /* المسافة من اليسار */
    right: 320px; /* المسافة من اليمين */
    background-color: #000000b5;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    z-index: 999;
    overflow: hidden;
    padding: 10px 0px;
    border-top: 2px solid rgba(243, 172, 57, 0.3);
}

.plans-dropdown-menu.show {
   display: block;
   animation: slideDownPlans 0.5s ease;
}

@keyframes slideDownPlans {
   from {
       opacity: 0;
       transform: translateY(-20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.plans-dropdown-content {
   max-width: 100%;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: flex-start;
   gap: 5px;
   padding: 0 0px;
   margin-right: 45px;/*التحكم في بعد خانات المخططات */
}

.plans-dropdown-item {
   padding: 15px 35px;
   border-radius: 15px;
   cursor: pointer;
   font-size: 18px;
   color: rgb(255, 255, 255);
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   text-decoration: none;
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 200px;
   font-weight: 600;
   position: relative;
   overflow: hidden;
   text-align: center;
}

.plans-dropdown-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(243, 172, 57, 0.4), transparent);
   transition: left 0.8s ease;
}

.plans-dropdown-item:hover::before {
   left: 100%;
}

.plans-dropdown-item:hover {
   background: linear-gradient(135deg, rgba(243, 172, 57, 0.3) 0%, rgba(219, 187, 99, 0.2) 100%);
   border-color: rgba(243, 172, 57, 0.8);
   transform: translateY(-5px) scale(1.05);
   box-shadow: 0 15px 30px rgba(243, 172, 57, 0.4);
   color: #cca75f;
}

.plans-dropdown-item::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: linear-gradient(90deg, #cca75f, #dbbb63);
   transform: scaleX(0);
   transition: transform 0.4s ease;
}

.plans-dropdown-item:hover::after {
   transform: scaleX(1);
}

@media (max-width: 768px) {
   .plans-dropdown-content {
       flex-direction: column;
       gap: 20px;
       padding: 0 20px;
   }
   
   .plans-dropdown-item {
       min-width: 280px;
       font-size: 16px;
       padding: 18px 30px;
   }
}

/* قسم الخدمات المجاورة */
.nearby-services-section {
  background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
  padding: 80px 20px;
  margin: 0;
}

.nearby-services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.nearby-services-title {
  color: #585858;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.nearby-services-title1 {
  color: #585858;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 80px;
  font-family: 'Cairo', sans-serif;
  line-height: 1.2;
}

.nearby-services-description {
  color: #666;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Cairo', sans-serif;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #cca75f;
}
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-text {
  color: #585858;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 150px;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .nearby-services-title {
    font-size: 32px;
  }
  
  .nearby-services-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
  }
  
  .service-icon {
    font-size: 45px;
    width: 45px;
  }
  
  .service-text {
    font-size: 13px;
  }
  .services-grid2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
  }
  
  .service-icon2 {
    font-size: 45px;
    width: 45px;
  }
  
  .service-text2 {
    font-size: 13px;
  }
}

.nearby-services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #cca75f;
    transition: width 0.3s ease;
}

.nearby-services-title:hover::after {
    width: 100%;
}
/*الخدمات*/

.services-grid2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 1px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-item2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon2 {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #cca75f;
}
.service-icon2 svg {
    width: 100%;
    height: 100%;
}

.service-text2 {
  color: #585858;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}

.about-image {
    width: 300%;
    height: 550px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/Pattern01.png');
    background-repeat: repeat-x;
    background-size: auto 100px;
    background-position:center;
    opacity: 0.6;
    margin-top: -200px;
    position: absolute;
    z-index: -1;
    margin-top: 100px;
    margin-right: -40px;  
}

.nearby-facilities-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.nearby-facilities-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #585858;
}

.timeline-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #cca75f;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  flex: 1;
  height: 180px;
}

.facility-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  padding: 5px 10px;
  border-radius: 5px;
}

.timeline-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #cca75f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(166, 151, 123, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  position: absolute;
  top: 35%;
  left: 35%;
  z-index: 2;
}

.timeline-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(166, 151, 123, 0.4);
}

.facility-logo-img {
  width: 200%;
  height: 200%;
  object-fit: contain;
  border-radius: 10%;
  filter: brightness(0) invert(1) sepia(1) saturate(0.3) hue-rotate(35deg) brightness(0.9);
}

.facility-time {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  padding: 90px 10px;
  border-radius: 5px;
}
.facility-time1 {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  padding: 60px 10px;
  border-radius: 5px;
}

/* تصميم متجاوب للهاتف المحمول */
@media (max-width: 768px) {
  .nearby-facilities-section {
    padding: 20px 15px;
  }
  
  .nearby-facilities-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
    color: #585858;
    line-height: 1.3;
  }
  
  .timeline-container {
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 0 20px;
  }
  
  .timeline-line {
    width: 2px;
    height: calc(96% - 40px);
    position: absolute;
    top: 50px;
    right: 50%;
    transform: translateX(50%);
    background: #cca75f;
    z-index: 1;
  }
  
  .timeline-item {
    flex: none;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
  }
  
  /* عناصر الجهة اليمنى (الأرقام الفردية) */
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: right;
  }
  
  .timeline-item:nth-child(odd) .facility-name {
    order: 1;
    flex: 1;
    margin-left: 15px;
  }
  
  .timeline-item:nth-child(odd) .timeline-circle-wrapper {
    order: 2;
  }
  
  .timeline-item:nth-child(odd) .facility-time,
  .timeline-item:nth-child(odd) .facility-time1 {
    order: 3;
    flex: 1;
    text-align: left;
    margin-right: 15px;
  }
  
  /* عناصر الجهة اليسرى (الأرقام الزوجية) */
  .timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .facility-time,
  .timeline-item:nth-child(even) .facility-time1 {
    order: 1;
    flex: 1;
    text-align: right;
    margin-left: 15px;
  }
  
  .timeline-item:nth-child(even) .timeline-circle-wrapper {
    order: 2;
  }
  
  .timeline-item:nth-child(even) .facility-name {
    order: 3;
    flex: 1;
    margin-right: 15px;
  }
  
  .timeline-circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .timeline-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #cca75f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(166, 151, 123, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  position: absolute;
  top: 35%;
  left: 41%;
  z-index: 2;
  }
  
  .facility-logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
  }
  
  .facility-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: -50px;
    text-align:center;
  }
  
  .facility-time,
  .facility-time1 {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
  }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .nearby-facilities-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .timeline-container {
    padding: 0 10px;
    gap: 18px;
  }
  
  .timeline-circle {
    width: 55px;
    height: 55px;
  }
  
  .facility-logo-img {
    width: 60px;
    height: 60px;
  }
  
  .facility-name {
    font-size: 15px;
  }
  
  .facility-time,
  .facility-time1 {
    font-size: 13px;
  }
  
  .timeline-item {
    gap: 12px;
  }
  
  .timeline-item:nth-child(odd) .facility-name {
    margin-left: 12px;
  }
  
  .timeline-item:nth-child(odd) .facility-time,
  .timeline-item:nth-child(odd) .facility-time1 {
    margin-right: 12px;
  }
  
  .timeline-item:nth-child(even) .facility-time,
  .timeline-item:nth-child(even) .facility-time1 {
    margin-left: 12px;
  }
  
  .timeline-item:nth-child(even) .facility-name {
    margin-right: 12px;
  }
  .services-grid2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
  }
  
  .service-icon2 {
    font-size: 45px;
    width: 45px;
  }
  
  .service-text2 {
    font-size: 13px;
  }
}


.projects-section.with-bg > .section-header,
.projects-section.with-bg > .projects-grid {
    position: relative;
    z-index: 2;
    color: #fff;
}

.section-header h2 {
    font-size: 52px;
    color: #cca75f;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: -30px;
}

.section-subtitle {
    font-size: 40px;
    color: #eee;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 320px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    border-radius: 2px;
}

.project-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-stats li {
    font-size: 18px;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(204, 167, 95, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-stats li:last-child {
    border-bottom: none;
}

.project-stats li:hover {
    color: #f8f9fa;
    transform: translateX(5px);
}

.count {
    font-weight: 700;
    color: #cca75f;
    font-size: 22px;
    background: linear-gradient(135deg, #cca75f, #ddb76f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* إضافة تأثيرات متقدمة */
.project-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* تحسين التجاوب */
@media (max-width: 768px) {
    .projects-grid {
        gap: 20px;
    }
    
    .project-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
}


/* قسم الأخبار */
/* قسم الأخبار */
/* قسم الأخبار */

/* قسم الأخبار */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
    position: relative;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
}

.news-text-section {
    width: 45%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.news-title {
    color: #585858;
    font-size: 62px;
    font-weight: 300;
    text-align: right;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.news-subtitle {
    color: #666;
    font-size: 20px;
    font-weight: 400;
    text-align: right;
    margin-bottom: 40px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
}

.news-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
    direction: rtl;
}

.news-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    color: #cca75f;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.nav-btn:hover {
    background: #cca75f;
    color: white;
    border-color: #cca75f;
}

.news-date {
    font-size: 16px;
    font-weight: 500;
    color: #7e7e7e;
    font-family: 'Cairo', sans-serif;
    background: transparent;
    padding: 0 10px;
    border-radius: 0;
    border: none;
}

.news-slider {
    position: relative;
    width: 55%;
    height: 500px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.news-slide {
    flex: 0 0 80%;
    margin-right: 20px;
    height: 500px;
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding: 30px 25px;
    color: white;
    min-height: 40%;
}

.news-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: flex-start;
    direction: ltr;
}

.news-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
}

.news-content p {
    font-size: 16px;
    color: #ececec;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    direction: ltr;
}

.news-meta span {
    font-size: 14px;
    color: #ccc;
    font-family: 'Cairo', sans-serif;
}

.news-meta a {
    font-size: 14px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.news-meta a:hover {
    color: #f0c674 !important;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .news-text-section {
        width: 100%;
        padding-right: 0;
        min-height: auto;
    }
    
    .news-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .news-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .news-slider {
        width: 100%;
        height: 400px;
    }
    
    .news-slide {
        flex: 0 0 calc(100% - 15px); /* تقليل العرض لإفساح المجال للمسافة */
        height: 400px;
        position: relative;
        background: white;
        border-radius: 15px;
        overflow: hidden;
        margin-right: 0;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .news-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .news-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        font-size: 13px;
        direction: ltr; /* للتأكد من الترتيب الصحيح */
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 50px 0;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-slider {
        height: 350px;
    }
    
    .news-slide {
        flex: 0 0 90%;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-content h3 {
        font-size: 16px;
    }
    
    .news-content p {
        font-size: 13px;
    }
}

/*قسم تواصل معنا*/
.contact-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 20px;
  direction: rtl;
  position: relative;
  overflow: hidden;
}
.contact-decoration {
  bottom: 0;
  left: 0;
  margin-right: -39px;
  margin-left: -39px;
  width: 110vw; /* يعني العرض كامل الشاشة */
  height: 80px; /* حسب حجم الصورة */
  background-image: url("/static/images/Pattern01.png"); /* مسار الصورة */
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%; /* ارتفاع تلقائي */
  opacity: 0.5; /* شفافية */
  margin-top: 20px;
  margin-bottom: -60px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  direction: rtl;
}

.contact-logo-text {
  flex: 1;
  min-width: 280px;
  text-align: right;
}

.contact-logo {
  width: 220px;
  margin-bottom: 5px;
  margin-top: -50px;
}

.contact-description {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-top: -60px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffc107;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 10px;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  flex-direction: row; /* هذا هو التعديل المهم */
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #ffc10730;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

footer {
  background-color: #222;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}
.contact-col {
  flex: 1;
  min-width: 220px;
}

.contact-col h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #cca75f;
}

.location-link {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  gap: 8px;
  transition: color 0.3s;
}

.location-link:hover {
  color: #cca75f;
}

.icon {
  width: 20px;
  height: 20px;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #cca75f;
}

/* أيقونات التواصل بشكل أفقي */
.horizontal-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.horizontal-icons a img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s;
}

.horizontal-icons a:hover img {
  transform: scale(1.2);
}

.social-username {
  font-size: 17px;
  color: #ccc;
  margin-top: 10px;
}
.launch-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #cca75f;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  pointer-events: none; /* يمنع التفاعل معها لو ما تبي أحد يضغطها */
}

  /* تصميم الجوال */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }
    
    /* إخفاء العناصر الأصلية في الجوال */
    header nav,
    header .user-dropdown {
        display: none;
    }
    
    /* زر الهامبرغر */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 25px;
        justify-content: space-between;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    /* القائمة الجانبية */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #000000f0 0%, #1a1a1af0 100%);
        backdrop-filter: blur(15px);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
     header.scrolled {
        background-color: rgba(0, 0, 0, 0.85); /* تحكم بالتعتيم */
        border-bottom-left-radius: 0px; /* تحكم بالانحناء */
        border-bottom-right-radius: 0px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(12px); /* تحكم بتغبيش الخلفية */
        transition: all 0.3s ease;
    }
    .mobile-sidebar-content {
        padding: 80px 20px 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .mobile-logo {
        width: 90px;
        margin-bottom: 20px;
        margin-top: -50px;
        text-align: center;
        margin-left: 200px;
    }
    
    .mobile-logo img {
        width: 200%;
        height: auto;
    }
    
    /* رسالة الترحيب في الجوال */
    .mobile-welcome {
        background-color: #f3ac399b;
        color: white;
        padding: 15px;
        border-radius: 10px;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 30px;
    }
    
    /* قائمة التنقل في الجوال */
    .mobile-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-nav a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        border-color: #cca75f;
        color: #cca75f;
    }

    /* قائمة المشاريع الفرعية في الجوال */
.mobile-plans-dropdown {
    position: relative;
}

.mobile-plans-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-plans-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-plans-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 10px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-plans-submenu.active {
    max-height: 250px;
}

.mobile-plans-submenu a {
    font-size: 16px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    border: 1px solid rgba(243, 172, 57, 0.2);
}

.mobile-plans-submenu a:hover {
    background-color: rgba(243, 172, 57, 0.3);
    border-color: #cca75f;
    color: #cca75f;
}
    
    /* زر تسجيل الخروج في الجوال */
    .mobile-logout-btn {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border: none;
        padding: 15px;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s ease;
    }
    
    .mobile-logout-btn:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e29 100%);
        transform: translateY(-2px);
    }
    
    /* تعتيم الخلفية */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* تعديل الشعار للجوال */
    .logo {
        width: 90px;
        margin-left: 0;
    }
    
    .logo img {
        width: 200%;
    }
    .hero-content h1 {
      margin-left: 0;
      font-size: 32px;
    }
    
    .hero-content h2 {
      margin-left: 0;
      font-size: 18px;
    }
    /* قسم الرؤيه والنصوص  */
   .desktop-version {
        display: none;
    }
    
    /* إظهار النسخة الجديدة في الجوال */
    .mobile-version {
        display: block;
        padding: 40px 20px;
    }
    
    /* النص الرئيسي الثابت */
    .mobile-main-text {
        text-align: center;
        margin-bottom: 40px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        border: 1px solid rgba(243, 172, 57, 0.2);
    }
    
    .mobile-main-text h2 {
        font-size: 26px;
        margin-bottom: 15px;
        background: linear-gradient(135deg, #dbbb63, #cca75f);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }
    
    .mobile-main-text p {
        font-size: 16px;
        line-height: 1.7;
        color: #e0e0e0;
        text-align: right;
    }
    
    .mobile-main-text .highlight-text {
        color: #dbbb63;
        font-weight: 600;
    }
    
    /* عناصر المحتوى */
    .mobile-content-items {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .mobile-content-item {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid rgba(243, 172, 57, 0.1);
    }
    
    .mobile-content-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }
    
    .mobile-item-text {
        padding: 20px;
    }
    
    .mobile-item-text h3 {
        font-size: 18px;
        color: #cca75f;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .mobile-item-text p {
        font-size: 14px;
        line-height: 1.6;
        color: #d0d0d0;
        text-align: right;
        margin: 0;
    }

    /* تحسين الخط للشاشات الصغيرة جداً */
    @media (max-width: 480px) {
        .interactive-section {
            padding: 30px 15px;
        }

        .text-content {
            padding: 15px 10px;
        }

        .text-content h2 {
            font-size: 22px;
        }

        .text-content p {
            font-size: 14px;
            line-height: 1.6;
        }

        .floating-image img {
            height: 140px;
        }

        .images-grid {
            gap: 15px;
        }
    }
    /* قسم الخدمات والمرافق والخدمات المجاورة*/
    /* تحسين قسم الخدمات والمرافق للجوال */
.nearby-services-section {
    padding: 50px 15px;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
}

.nearby-services-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* العناوين الرئيسية */
.nearby-services-title1 {
    font-size: 34px;
    margin-bottom: 40px;
    color: #585858;
    line-height: 1.3;
    padding: 0 10px;
}
    /* قسم البطاقات للمخططات*/
/* تحسين قسم المخططات للجوال */
.plans-section {
    background-image: url('/static/images/خلفية\ مخططاتنا.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* تغيير من fixed إلى scroll للجوال */
    padding: 60px 15px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plans-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: -1;
}

/* الشعار */
.plans-logo {
    text-align: center;
    margin: 20px 0 40px 0;
}

.plans-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* شبكة المشاريع */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    max-width: 100%;
}

/* بطاقات المشاريع */
.project-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 350px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.project-card:hover::before,
.project-card:active::before {
    transform: translateX(0);
}

.project-card:hover,
.project-card:active {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* عناوين البطاقات */
.project-card h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.project-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    border-radius: 2px;
}

/* إحصائيات المشاريع */
.project-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-stats li {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(204, 167, 95, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.project-stats li:last-child {
    border-bottom: none;
}

.project-stats li:hover {
    color: #f8f9fa;
    transform: translateX(3px);
}

.count {
    font-weight: 700;
    color: #cca75f;
    font-size: 18px;
    background: linear-gradient(135deg, #cca75f, #ddb76f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* تحسين للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .plans-section {
        padding: 40px 10px;
    }
    
    .plans-logo img {
        max-width: 160px;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .project-card {
        padding: 20px 15px;
        max-width: 70%;
        margin: 0 5px;
    }
    
    .project-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .project-stats li {
        font-size: 15px;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .count {
        font-size: 16px;
    }
}

/* تأثيرات اللمس للجوال */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .project-card:active {
        transform: translateY(-4px);
        box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
        background: rgba(255, 255, 255, 0.18);
    }
}
/* تحسين قسم الأخبار للجوال */
.news-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
}

.news-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* قسم النصوص */
.news-text-section {
    width: 100%;
    padding: 0;
    text-align: center;
    order: 1;
}

.news-title {
    color: #585858;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

.news-subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    padding: 0 10px;
}

/* أدوات التحكم */
.news-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.news-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #dddddd00;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    color: #cca75f;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.nav-btn:hover,
.nav-btn:active {
    background: #cca75f;
    border-color: #cca75f;
    transform: scale(1.05);
}

.news-date {
    font-size: 16px;
    font-weight: 500;
    color: #7e7e7e;
    font-family: 'Cairo', sans-serif;
    background: transparent;
    padding: 0 10px;
    border-radius: 0;
    border: none;
}

/* الشريط المتحرك */
.news-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    order: 2;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    gap: 20px; /* إضافة مسافة بين الصور */
}

.news-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    order: 2;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوى الأخبار */
.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 25px 20px;
    color: white;
    min-height: 45%;
}

.news-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 12px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.news-content p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    direction: ltr; /* للتأكد من الترتيب الصحيح */
}

.news-meta span {
    color: #ccc;
    font-family: 'Cairo', sans-serif;
    order: 1; /* التاريخ على اليسار */
}

.news-meta a {
    color: #cca75f !important;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
    order: 2; /* "اقرأ المزيد" على اليمين */
}

.news-meta a:hover {
    color: #ddb76f !important;
}

/* تحسين للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-container {
        padding: 0 10px;
        gap: 25px;
    }
    
    .news-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .news-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .news-slider {
        height: 350px;
    }
    
    .news-slide {
        height: 350px;
    }
    
    .news-content {
        padding: 20px 15px;
        min-height: 40%;
    }
    
    .news-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .news-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
    
    .news-date {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .news-nav {
        gap: 12px;
    }
}

/* تأثيرات اللمس للجوال */
@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #cca75f;
        transform: none;
    }
    
    .nav-btn:active {
        background: #cca75f;
        color: white;
        transform: scale(0.95);
    }
}


}

/* إخفاء عناصر الجوال في الشاشات الكبيرة */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-overlay {
        display: none;
    }
}
/* إخفاء النسخة الجديدة في الكمبيوتر */
.mobile-version {
    display: none;
}