/* ======================================================
   1. FONT IMPORT
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ======================================================
   2. ROOT & COLOR PALETTE
   ====================================================== */
:root {
  --primary: #df9619;
  --secondary: #ffffff;
  --light: #F5F5F5;
  --accent: #e28b21;
  --dark: #1A1A1A;
  --text-dark: #222222;
  --text-light: #6c757d;
  --font-arabic: 'Cairo', sans-serif;
  --font-latin: 'Montserrat', sans-serif;
}

/* ======================================================
   3. GLOBAL & TYPOGRAPHY
   ====================================================== */
html, body {
  overflow-x: hidden !important; 
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on final header height */
  overflow-y: scroll; 
}
body {
  font-family: var(--font-arabic);
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.8; 
  font-size: 17px;
  position: relative;
}
body.loading { overflow: hidden !important; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-arabic); font-weight: 700; color: var(--dark); }
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); }

section { padding: 80px 0; overflow: hidden; } 

/* ✨ جديد: تنسيق الصفحات الداخلية */
.internal-page-padding {
  padding-top: 120px; /* مسافة إضافية تحت الهيدر */
  padding-bottom: 80px;
}
.bg-f { background-color: var(--light); /* خلفية فاتحة موحدة للصفحات الداخلية */ }


.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; position: relative; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 60px auto; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background-color: var(--primary); border-radius: 2px; }
.section-title.light, .section-subtitle.light { color: var(--light); }
.section-title.light::after { background-color: var(--light); }

/* ======================================================
   4. PRELOADER
   ====================================================== */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.7s ease, visibility 0.7s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { animation: pulse 1.5s ease-in-out infinite; }
.loader-logo img { width: 100px; height: 100px; object-fit: contain; background: var(--secondary); border-radius: 10px; padding: 10px; }
.loader-bar { width: 150px; height: 4px; background-color: rgba(255, 255, 255, 0.2); margin-top: 20px; border-radius: 2px; overflow: hidden; position: relative; }
.loader-bar::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 50%; background-color: var(--primary); animation: loadingBar 2s linear infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.9; } 100% { transform: scale(1); opacity: 1; } }
@keyframes loadingBar { 0% { transform: translateX(-100%); } 50% { transform: translateX(150px); } 100% { transform: translateX(150px); } }

/* ======================================================
   5. HEADER (Sticky)
   ====================================================== */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: transparent; transform: translateY(0); transition: all 0.4s ease-out; padding: 15px 0; }
header.scrolled { background-color: var(--secondary); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); padding: 10px 0; }
.logo-img { width: 70px; height: 70px; object-fit: contain; transition: all 0.3s ease; }
header.scrolled .logo-img { width: 60px; height: 60px; }
.nav-link { font-family: var(--font-latin); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 12px; position: relative; color: var(--light) !important; padding-bottom: 8px; transition: color 0.3s ease; }
/* ✨ تعديل: ألوان الروابط في الهيدر للصفحات الداخلية */
header.scrolled .nav-link, 
header:not(.scrolled):not([style*="transparent"]) .nav-link /* When scrolled or if header is white initially */
 { color: var(--dark) !important; }
.nav-link::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
[dir="ltr"] .nav-link::after { right: auto; left: 0; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.lang-toggle { background: none; border: 1px solid var(--light); color: var(--light); padding: 6px 14px; border-radius: 20px; font-weight: 600; font-family: var(--font-latin); transition: all 0.3s; margin-right: 15px; }
header.scrolled .lang-toggle,
header:not(.scrolled):not([style*="transparent"]) .lang-toggle
 { border-color: var(--primary); color: var(--primary); }
.lang-toggle:hover {  border-color: var(--primary); color: var(--secondary); }
.mobile-menu-btn { background: none; border: none; font-size: 1.5rem; color: var(--light); z-index: 1001; }
header.scrolled .mobile-menu-btn,
header:not(.scrolled):not([style*="transparent"]) .mobile-menu-btn
 { color: var(--dark); }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--secondary); box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.mobile-menu.open { max-height: 100vh; }
.mobile-menu .nav-link { padding: 15px 25px; border-bottom: 1px solid var(--light); margin: 0; display: block; width: 100%; color: var(--dark) !important; }

/* ======================================================
   6. HERO SECTION
   ====================================================== */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--secondary); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease-in-out; animation: kenBurns 20s infinite; }
.hero-slide.active { opacity: 1; }

/* ✨ جديد: تنسيقات لدعم وسم <picture> و <img> في الـ Hero */
.hero-slide picture,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* هذا يضمن أن الصورة تغطي المساحة بالكامل */
}

@keyframes kenBurns { 0% { transform: scale(1.1) translateX(0); opacity: 0.8; } 50% { transform: scale(1) translateX(-10px); opacity: 1; } 100% { transform: scale(1.1) translateX(0); opacity: 0.8; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(75deg, rgba(29, 29, 29, 0.8) 0%, rgba(29, 29, 29, 0.3) 100%); z-index: 1; }
.hero-content-container { position: relative; z-index: 2; text-align: right; }
[dir="ltr"] .hero-content-container { text-align: left; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; color: var(--secondary); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); margin-bottom: 15px; }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; color: var(--light); margin-bottom: 30px; }

/* ======================================================
   7. BUTTONS
   ====================================================== */
.btn-main { background-color: var(--primary); color: var(--secondary); border: 2px solid var(--primary); padding: 12px 30px; border-radius: 5px; transition: all 0.3s ease; font-weight: 600; font-family: var(--font-arabic); letter-spacing: 0.5px; }
.btn-main:hover { background-color: var(--accent); border-color: var(--accent); color: var(--secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.btn-secondary { background-color: transparent; color: var(--secondary); border: 2px solid var(--secondary); padding: 12px 30px; border-radius: 5px; transition: all 0.3s ease; font-weight: 600; font-family: var(--font-arabic); }
.btn-secondary:hover { background-color: var(--secondary); color: var(--dark); transform: translateY(-3px); }

/* ======================================================
   8. ABOUT SECTION (Index & Page)
   ====================================================== */
.about-section { background-color: var(--light); }
.section-title-left { font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; position: relative; padding-bottom: 15px; }
.section-title-left::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 4px; background-color: var(--primary); }
[dir="ltr"] .section-title-left::after { right: auto; left: 0; }
.about-subtitle { font-size: 1.3rem; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.about-text { color: var(--text-dark); line-height: 1.8; margin-bottom: 25px; }
.about-text .highlight { color: var(--primary); font-weight: 600; }
.about-list { list-style: none; padding: 0; }
.about-list li { position: relative; padding-right: 30px; margin-bottom: 10px; font-size: 1.05rem; }
.about-list li i { position: absolute; right: 0; top: 4px; color: var(--accent); font-size: 1.2rem; }
[dir="ltr"] .about-list li { padding-right: 0; padding-left: 30px; }
[dir="ltr"] .about-list li i { right: auto; left: 0; }
.about-img-wrap-new { position: relative; padding: 15px; overflow: visible; }

.about-img-main { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 10px solid var(--secondary); }
.about-experience-box { position: absolute; bottom: 0; left: 0; background: var(--primary); color: var(--secondary); padding: 25px 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); transform: translate(20%, -20%); z-index: 5;}
.about-experience-box .count { font-size: 2.5rem; font-weight: 500; font-family: var(--font-latin); line-height: 1; }
.about-experience-box span { font-size: 1rem; font-weight: 600; }
/* Styles for about.html image collage */
.about-img-wrap { position: relative; height: 450px; } /* Adjust height as needed */
.about-img { position: absolute; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: all 0.5s ease; border: 2px solid var(--secondary); }
.about-img.main { width: 70%; height: 80%; top: 10%; left: 15%; z-index: 3; }
.about-img.side1 { width: 40%; height: 50%; top: 0; left: 0; transform: rotate(-8deg); z-index: 2; }
.about-img.side2 { width: 40%; height: 50%; bottom: 0; right: 0; transform: rotate(5deg); z-index: 1; }
.about-img-wrap:hover .main { transform: scale(1.03); z-index: 4; }
.about-img-wrap:hover .side1 { transform: rotate(-12deg) translateX(-10px); }
.about-img-wrap:hover .side2 { transform: rotate(8deg) translateX(10px); }

/* ======================================================
   9. SERVICES SECTION (Index & Page)
   ====================================================== */
.services-section { background-color: var(--secondary); }
.service-card-new { background: var(--secondary); border: 1px solid #eee; padding: 40px 30px; border-radius: 10px; text-align: center; transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; margin-bottom: 40px; }
.service-card-new::before { content: ''; position: absolute; bottom: -100%; left: 0; width: 100%; height: 100%; background: var(--primary); transition: all 0.5s ease; z-index: 0; opacity: 0; }
.service-card-new:hover::before { bottom: 0; opacity: 1; }
.service-card-new:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.service-card-new * { position: relative; z-index: 1; transition: all 0.4s ease; }
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 25px; }
.service-card-new h5 { font-size: 1.3rem; font-weight: 600; color: var(--dark); margin-bottom: 15px; }
.service-card-new p { color: var(--text-light); margin-bottom: 25px; }
.learn-more { font-weight: 600; color: var(--primary); }
.learn-more i { transition: transform 0.3s; font-size: 0.8em; }
[dir="rtl"] .learn-more i { transform: rotate(180deg); }
.service-card-new:hover .service-icon, .service-card-new:hover h5, .service-card-new:hover p, .service-card-new:hover .learn-more { color: var(--secondary); }
.service-card-new:hover .learn-more i { transform: translateX(-5px); }
[dir="rtl"] .service-card-new:hover .learn-more i { transform: rotate(180deg) translateX(-5px); }

/* ✨ تنسيق بطاقة الخدمة (موحد الآن للصفحة الرئيسية والداخلية) */
.service-card { 
  background: var(--secondary); 
  border-radius: 10px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.07); 
  overflow: hidden; 
  margin-bottom: 40px; 
  transition: all 0.3s ease; 
  height: 100%;
}
.service-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.service-img { 
  width: 100%; 
  height: 250px; 
  object-fit: cover; 
}
.service-content { 
  padding: 25px; 
}
.service-content h5 { 
  font-size: 1.3rem; 
  font-weight: 600; 
  margin-bottom: 10px; 
  color: var(--primary); 
}
.service-content p { 
  color: var(--text-dark); 
  font-size: 1rem; 
}

/* ======================================================
   10. FEATURES SECTION (Index & Page)
   ====================================================== */
.features-section { background-color: var(--light); }
.feature-box { background: var(--secondary); padding: 30px; border-radius: 10px; text-align: center; height: 100%; border: 1px solid #eee; transition: all 0.3s ease; margin-bottom: 40px; }
.feature-box:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); border-color: var(--primary); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.feature-box h5 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.feature-box p { color: var(--text-light); font-size: 0.95rem; }
/* ✨ جديد: تنسيق قائمة المميزات في صفحة المميزات */
.features-list-container { background: var(--dark); color: var(--light); padding: 40px; border-radius: 10px; }
.features-list-container h4 { color: var(--primary); }
ul.features-list { list-style: none; padding: 0; }
ul.features-list li { position: relative; padding-right: 25px; margin-bottom: 12px; font-size: 1.05rem; }
ul.features-list li::before { content: '\f00c'; /* FontAwesome check icon */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 3px; color: var(--primary); }
[dir="ltr"] ul.features-list li { padding-right: 0; padding-left: 25px; }
[dir="ltr"] ul.features-list li::before { right: auto; left: 0; }

/* ======================================================
   11. PORTFOLIO (GRID) (Index & Page)
   ====================================================== */
.portfolio-section-new { background-color: var(--secondary); }
.filter-btn { background: none; border: 1px solid #ddd; color: var(--text-light); padding: 8px 20px; border-radius: 20px; margin: 0 5px; transition: all 0.3s ease; font-weight: 600; margin-bottom: 15px; }
.filter-btn:hover { background-color: var(--light); border-color: #ccc; color: var(--dark); }
.filter-btn.active { background-color: var(--primary); border-color: var(--primary); color: var(--secondary); }
.portfolio-item { transition: all 0.3s ease; margin-bottom: 40px; }
.portfolio-wrap { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.portfolio-wrap img { width: 100%; height: 300px; object-fit: cover; transition: all 0.4s ease; }
.portfolio-wrap:hover img { transform: scale(1.05); }
.portfolio-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 30px 20px 20px 20px; color: var(--secondary); transition: all 0.3s ease; opacity: 1; }
.portfolio-info h5 { color: var(--secondary); font-size: 1.1rem; margin-bottom: 5px; }
.portfolio-info p { color: var(--light); font-size: 0.9rem; margin: 0; opacity: 0.8; }

/* ✨ إصلاح: تم تغيير المحدد ليطابق HTML (portfolio-new) */
#portfolio-new .portfolio-item { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 40px; }
#portfolio-new .portfolio-img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.4s ease; }
#portfolio-new .portfolio-item:hover .portfolio-img { transform: scale(1.05); }
#portfolio-new .portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; }
#portfolio-new .portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ======================================================
   12. MATERIALS / PARTNERS
   ====================================================== */
.materials-section { background: var(--dark); position: relative; padding: 100px 0; }
.material-box { text-align: center; color: var(--light); opacity: 0.8; transition: all 0.3s ease; margin-bottom: 30px; }
.material-box:hover { opacity: 1; transform: scale(1.1); }
.material-box i { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary); }
.material-box span { display: block; font-weight: 600; font-size: 0.9rem; }
.material-box span.logo-text { font-family: var(--font-latin); font-weight: 700; font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 10px; }

/* ======================================================
   13. CTA SECTION
   ====================================================== */
.cta-section { background: var(--dark); color: var(--secondary); padding: 60px 0; background-image: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%, transparent); background-size: 40px 40px; animation: moveBg 15s linear infinite; }
@keyframes moveBg { 0% { background-position: 0 0; } 100% { background-position: 40px 40px; } }
.cta-section h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 15px; }
.cta-section p { color: var(--light); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; }
.cta-section .btn-main:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }

/* ======================================================
   14. TESTIMONIALS (Simpler)
   ====================================================== */
.testimonials-section { background-color: var(--light); }
#testimonialCarousel .carousel-item { padding-top: 0; padding-bottom: 40px; }
.testimonial-card { max-width: 700px; margin: 0 auto; padding: 40px; text-align: center; background-color: var(--secondary); border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); border-top: 4px solid var(--primary); position: relative; }
.testimonial-text { font-size: 1.1rem; font-style: italic; color: var(--text-dark); margin-bottom: 20px; }
.testimonial-name { font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.testimonial-location { font-size: 0.9rem; color: var(--text-light); }
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon { background-color: var(--dark); border-radius: 50%; padding: 15px; background-size: 50%; }
#testimonialCarousel .carousel-control-prev { left: -50px; }
#testimonialCarousel .carousel-control-next { right: -50px; }

/* ======================================================
   15. CONTACT SECTION (Index & Page)
   ====================================================== */
.contact-section-new { background-color: var(--light); }
.contact-wrapper { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }
.contact-info-new { background: var(--primary); color: var(--dark); padding: 40px; height: 100%; }
.contact-info-new h4 { color: var(--dark); font-weight: 700; margin-bottom: 30px; text-align: center;}
.contact-item { text-align: center; margin-bottom: 30px; }
.contact-item i { font-size: 2rem; color: var(--dark); margin-bottom: 10px; transition: all 0.3s ease; }
.contact-item:hover i { transform: scale(1.1) translateY(-3px); color: var(--secondary); }
.contact-item h6 { color: var(--dark); font-weight: 700; margin-bottom: 5px; }
.contact-item p, .contact-item a { color: #333 !important; margin: 0; font-weight: 600; }
.contact-item a:hover { color: var(--secondary) !important; text-decoration: underline !important; }
.social-icons-new { margin-top: 30px; text-align: center; }
.social-icons-new a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--dark); border-radius: 50%; color: var(--dark); margin: 0 5px; transition: all 0.3s; }
.social-icons-new a:hover { background-color: var(--dark); border-color: var(--dark); color: var(--primary); transform: scale(1.1); }
.contact-form-new { background: var(--dark); padding: 40px; height: 100%; }
.contact-form-new h4 { color: var(--primary); margin-bottom: 25px; text-align: center; }
.form-control { padding: 12px 15px; border: 1px solid #444; border-radius: 5px; background-color: #222; color: var(--light); transition: all 0.3s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(223, 150, 25, 0.2); background-color: #333; color: var(--light); }
.form-control::placeholder { color: #888; }
.form-control:focus::placeholder { color: #aaa; }
/* ✨ جديد: تنسيق صفحة تواصل معنا المنفصلة */
#contact .contact-info { background: var(--light); padding: 30px; border-radius: 10px; height: 100%; box-shadow: 0 5px 20px rgba(0,0,0,0.05);}
#contact .contact-icon { font-size: 2rem; color: var(--primary); }
#contact .social-icons a { color: var(--dark); margin: 0 10px; font-size: 1.5rem; }
#contact .social-icons a:hover { color: var(--primary); }

/* ======================================================
   16. ✨ جديد: BRANCHES PAGE
   ====================================================== */
/* ✨ تنظيف: تم دمج هذا التنسيق مع التنسيق في الأسفل (سطر 603) */
.branch-card { 
  background: var(--secondary); 
  border-radius: 10px; 
  padding: 30px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
  text-align: center; 
  margin-bottom: 40px;
  transition: all 0.3s ease; /* (✨ مضاف) */
}
.branch-card:hover { /* (✨ مضاف) */
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(223, 150, 25, 0.2);
}
.branch-title { 
  color: var(--primary); 
  font-weight: 700; 
  margin-bottom: 15px; 
}
.branch-card p { 
  color: var(--text-light); 
  margin-bottom: 25px; 
  max-width: 600px; 
  margin-left: auto; 
  margin-right: auto; 
}
.map-embed { 
  width: 100%; 
  height: 350px; 
  border: 0; 
  border-radius: 10px; 
  filter: grayscale(20%); /* Optional: subtle map style */
}

/* ======================================================
   17. FOOTER
   ====================================================== */
.footer-new { background: var(--dark); color: #ccc; padding-top: 70px; }
.footer-logo-img { width: 90px; height: 90px; object-fit: contain; margin-bottom: 20px; background-color: var(--secondary); border-radius: 10px; padding: 5px; }
.footer-about { font-size: 0.95rem; color: #aaa; max-width: 500px; margin: 0 auto 40px auto; }
.footer-links-wrapper { border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 40px 0; text-align: right; }
[dir="ltr"] .footer-links-wrapper { text-align: left; }
.footer-links h5 { color: var(--primary); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; transition: all 0.3s; }
.footer-links a:hover { color: var(--primary); padding-right: 5px; }
[dir="ltr"] .footer-links a:hover { padding-right: 0; padding-left: 5px; }
.footer-links p { color: #ccc; margin: 0; }
.copyright-new { padding: 25px 0; text-align: center; }
.copyright-new p { max-width: 100%; margin: 0; color: #777; font-size: 0.9rem; }

/* ======================================================
   18. UTILITIES
   ====================================================== */
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px; background: var(--primary); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }
.whatsapp-float { position: fixed; width: 55px; height: 55px; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 28px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.whatsapp-float:hover { color: #FFF; transform: translateY(-4px); }



/* ======================================================
   ✨ جديد: تنسيقات الصفحات الداخلية (About, Services, etc.)
   ====================================================== */

/* 1. بانر عنوان الصفحة الداخلية */
.internal-page-header {
  background-color: var(--dark);
  color: var(--secondary);
  padding: 100px 0 60px 0; /* مسافة من الهيدر */
  margin-top: 80px; /* يعتمد على ارتفاع الهيدر الثابت */
  text-align: center;
}
.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--light);
  max-width: 600px;
  margin: 0 auto;
}

/* 2. قسم الرؤية والرسالة (صفحة "من نحن") */
.vision-mission-section {
  background-color: var(--secondary);
}
.vision-box {
  background-color: var(--light);
  padding: 40px;
  border-radius: 10px;
  height: 100%;
  border: 1px solid #eee;
  text-align: center;
}
.vision-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.vision-box h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 15px;
}
.vision-box p {
  font-size: 1rem;
  color: var(--text-light);
}

/* 3. قسم فريق العمل (صفحة "من نحن") */
.team-section {
  background-color: var(--secondary);
}
.team-card {
  text-align: center;
  margin-bottom: 40px;
}
.team-img {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.team-card:hover .team-img img {
  transform: scale(1.05);
}
.team-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}
.team-card span {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* 4. تنسيقات صفحة الخدمات (Services.html) */
/* ✨ تنظيف: تم حذف هذا القسم لأنه مكرر من (سطر 352) */


/* 5. تنسيقات صفحة معرض الأعمال (Portfolio.html) */
#portfolio-page .portfolio-item { 
  position: relative; 
  overflow: hidden; 
  border-radius: 10px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  margin-bottom: 40px; 
}
#portfolio-page .portfolio-img { 
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.4s ease; 
}
#portfolio-page .portfolio-item:hover .portfolio-img { 
  transform: scale(1.05); 
}
#portfolio-page .portfolio-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(223, 150, 25, 0.8); /* لون برايمري شفاف */
  opacity: 0; 
  transition: all 0.4s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--dark);
  font-size: 1.5rem;
}
#portfolio-page .portfolio-item:hover .portfolio-overlay { 
  opacity: 1; 
}
#portfolio-page .portfolio-overlay i {
  transform: scale(0);
  transition: all 0.3s ease 0.1s;
}
#portfolio-page .portfolio-item:hover .portfolio-overlay i {
  transform: scale(1);
}


/* 6. تنسيقات صفحة الفروع (Branches.html) */
/* ✨ تنظيف: تم حذف هذا القسم لأنه دمج مع (سطر 504) */


/* 7. تنسيقات صفحة تواصل معنا (Contact.html) */
#contact-page-form {
  background-color: var(--dark);
  padding: 40px;
  border-radius: 10px;
}
#contact-page-form .form-control {
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: var(--light);
  transition: all 0.3s;
}
#contact-page-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(223, 150, 25, 0.2);
  background-color: #333;
  color: var(--light);
}
#contact-page-form .form-control::placeholder { color: #888; }
#contact-page-info {
  background: var(--light);
  padding: 40px;
  border-radius: 10px;
  height: 100%;
}
#contact-page-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
#contact-page-info .contact-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-left: 20px;
  margin-top: 5px;
  width: 30px; /* توحيد عرض الأيقونة */
}
[dir="rtl"] #contact-page-info .contact-item i {
  margin-left: 0;
  margin-right: 20px;
}
#contact-page-info .contact-item h6 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 5px;
}
#contact-page-info .contact-item p, 
#contact-page-info .contact-item a {
  color: var(--text-dark) !important;
  margin: 0;
}
#contact-page-info .contact-item a:hover {
  color: var(--primary) !important;
}
#contact-page-info .social-icons-new {
  margin-top: 30px;
  text-align: right;
}
[dir="ltr"] #contact-page-info .social-icons-new {
  text-align: left;
}
#contact-page-info .social-icons-new a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--dark);
  margin: 0 5px;
  transition: all 0.3s;
}
#contact-page-info .social-icons-new a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}


/* 8. تعديلات الريسبونسيف للصفحات الداخلية */
@media (max-width: 991px) {
  .internal-page-header {
    margin-top: 70px; /* تعديل المسافة لتناسب الهيدر الأصغر */
    padding: 80px 0 50px 0;
  }
}
@media (max-width: 768px) {
  .internal-page-header {
    padding: 60px 0 40px 0;
  }
  .page-title {
    font-size: 2.2rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
}
/* ======================================================
   19. RESPONSIVE
   ====================================================== */
@media (max-width: 991px) {
  html { scroll-padding-top: 70px; }
  header, header.scrolled, header:not([style*="transparent"]) { padding: 10px 0; background-color: var(--secondary); }
  .logo-img { width: 60px; height: 60px; }
  .nav-link { color: var(--dark) !important; font-size: 0.9rem; }
  header.scrolled .nav-link { color: var(--dark) !important; }
  .lang-toggle { border-color: var(--primary); color: var(--primary); }
  .mobile-menu-btn { color: var(--dark); }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.3rem; }
  .about-experience-box { transform: translate(10%, -10%); padding: 20px; }
  .about-experience-box .count { font-size: 3rem; }
  #testimonialCarousel .carousel-control-prev { left: -10px; }
  #testimonialCarousel .carousel-control-next { right: -10px; }
  .footer-links-wrapper { text-align: center !important; }
  .footer-links { margin-bottom: 30px; }
}
/* ======================================================
   6. HERO SECTION - تعديلات الأزرار للجوال
   ====================================================== */

@media (max-width: 768px) {
  .hero-content .btn-main,
  .hero-content .btn-secondary {
    display: block;      /* يجعل الزر يأخذ سطر جديد */
    width: 100%;         /* يجعله يملأ عرض الحاوية */
    text-align: center;  /* يضمن توسيط النص داخل الزر */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* هذا الكود يضيف المسافة بين الزرين */
  .hero-content .btn-main {
    margin-bottom: 15px; /* يمكنك تغيير قيمة 15px للمسافة التي تراها مناسبة */
  }

  .hero-content .btn-secondary {
    margin-top: 10px; /* إزالة أي هامش علوي إضافي */
  }
}

/* للحفاظ على التنسيق الأصلي لأجهزة الكمبيوتر */
@media (min-width: 769px) {
  .hero-content .btn-main,
  .hero-content .btn-secondary {
    display: inline-block; /* الأزرار جنباً إلى جنب */
    width: auto;           /* العرض التلقائي حسب المحتوى */
    margin-bottom: 0;      /* إزالة الهوامش السفلية */
  }
}
@media (max-width: 576px) {
  #testimonialCarousel .carousel-item { padding-top: 0; } 
  .testimonial-card { padding: 40px 20px; }
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next { display: none; }
}
/* لا يوجد } في نهاية الملف الأصلي، لذا أفترض أن هذا هو المكان الصحيح */