/* منع التمرير الأفقي لجميع العناصر */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ضبط العناصر التي قد تسبب تمرير أفقي */
.navbar, .hero-section, .section, .site-footer {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ضبط الشبكات */
.services-grid, .why-grid, .stats-flex {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.show-ar, .show-en {
  display: block;
}
body.en .show-ar {
  display: none !important;
}
body.en .show-en {
  display: block !important;
}
body:not(.en) .show-ar {
  display: block !important;
}
body:not(.en) .show-en {
  display: none !important;
}
:root {
  --gold: #bfa046;
  --gold-dark: #a88a2c;
  --green: #1a6b3b;
  --white: #fff;
  --gray: #f7f7f7;
  --gray-dark: #232323;
  --dark: #222;
}
body {
  font-family: 'Cairo', Arial, sans-serif;
  background: var(--gray);
  color: var(--dark);
  margin: 0;
  padding: 0;
  direction: rtl;
  transition: background 0.5s;
  overflow-x: hidden; /* منع التمرير الأفقي */
  width: 100%;
  max-width: 100vw;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.navbar {
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px #bfa04622;
  animation: fadeInDown 1s;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo-nav {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  margin-left: 1rem;
  animation: logoPop 1.2s;
}
.nav-links, .nav-links-en {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links-en { display: none; }
body.en .nav-links { display: none !important; }
body.en .nav-links-en { display: flex !important; gap: 1.5rem; }
body:not(.en) .nav-links { display: flex !important; }
body:not(.en) .nav-links-en { display: none !important; }
.nav-link {
  text-decoration: none;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  padding: 0.3rem 0.5rem;
}
.nav-link.active, .nav-link:hover {
  color: var(--gold-dark);
}
.nav-link.active::after, .nav-link:hover::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--gold-dark);
  border-radius: 2px;
  width: 100%;
  position: absolute;
  bottom: -6px;
  left: 0;
  animation: underline 0.4s;
}
@keyframes underline {
  from { width: 0; }
  to { width: 100%; }
}
.lang-switch {
  display: flex;
  gap: 0.3rem;
}
.lang-switch button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang-switch button.active, .lang-switch button:hover {
  background: var(--green);
  color: var(--gold);
}
.hero-section {
  background: var(--gray);
  text-align: center;
  padding: 4rem 1rem 3rem 1rem;
  border-bottom: 4px solid var(--gold);
  animation: fadeIn 1.2s;
  position: relative;
  min-height: 350px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.logo-hero {
  width: 120px;
  margin-bottom: 1rem;
  animation: logoPop 1.2s;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.office-name, .office-name-en {
  margin: 0.2rem 0;
  font-size: 2.5rem;
  color: var(--green);
  font-weight: bold;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px #fff8, 0 1px 2px #0002;
}
.office-name-en { display: none; }
.hero-desc, .about-ar, .about-en {
  font-size: 1.25rem;
  color: #222;
  text-shadow: 0 1px 4px #fff8, 0 0px 1px #0002;
}
.cta-btn, .cta-btn-en {
  display: inline-block;
  margin: 1.5rem 0.5rem 0 0.5rem;
  padding: 0.8rem 2.2rem;
  background: var(--gold-dark);
  color: var(--white);
  font-size: 1.2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px #bfa04633;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn-en:hover {
  background: var(--green);
  color: var(--gold-dark);
  transform: scale(1.05);
}
.cta-btn-en { display: none; }
body.en .cta-btn { display: none !important; }
body.en .cta-btn-en { display: inline-block !important; }
body:not(.en) .cta-btn { display: inline-block !important; }
body:not(.en) .cta-btn-en { display: none !important; }
.section {
  margin: 2.5rem auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px #bfa04622;
  padding: 2.5rem 1.5rem;
  animation: fadeInUp 1.2s;
  position: relative;
}
.section:not(:last-child)::after {
  content: '';
  display: block;
  height: 4px;
  width: 80px;
  background: var(--gold-dark);
  border-radius: 2px;
  margin: 2rem auto 0 auto;
}
h2 {
  color: var(--gold-dark);
  margin-top: 0;
  font-size: 2rem;
  text-align: center;
  text-shadow: 0 2px 8px #fff8, 0 1px 2px #0002;
}
.services-ar, .services-en {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0 0 0;
  padding: 0;
  list-style: none;
}
.services-ar li, .services-en li {
  background: var(--white);
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  box-shadow: 0 2px 8px #bfa04622;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  color: var(--green);
  min-width: 220px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: bold;
}
.services-ar li:hover, .services-en li:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 6px 24px #bfa04633;
}
.icon {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}
.why-list, .why-list-en {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0 0 0;
  padding: 0;
  list-style: none;
}
.why-list li, .why-list-en li {
  background: #fffbe6;
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  color: var(--green);
  min-width: 200px;
  text-align: center;
  font-weight: bold;
}
.stats-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}
.stat-box {
  background: #fffbe6;
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  box-shadow: 0 2px 8px #bfa04622;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 180px;
}
.stat-num { display: inline-block; min-width: 80px; }
.stat-count { display: inline-block; min-width: 20px; }
.stat-label, .stat-label-en {
  display: block;
  font-size: 1.1rem;
  color: var(--green);
  margin-top: 0.5rem;
}
.stat-label-en { display: none; }
body.en .stat-label { display: none !important; }
body.en .stat-label-en { display: block !important; }
body:not(.en) .stat-label { display: block !important; }
body:not(.en) .stat-label-en { display: none !important; }
.faq-list, .faq-list-en {
  margin: 2rem 0 0 0;
}
.faq-item {
  background: #fffbe6;
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  box-shadow: 0 2px 8px #bfa04622;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.faq-list-en { display: none; }
body.en .faq-list { display: none !important; }
body.en .faq-list-en { display: block !important; }
body:not(.en) .faq-list { display: block !important; }
body:not(.en) .faq-list-en { display: none !important; }
.contact-ar, .contact-en {
  font-size: 1.2rem;
  color: var(--green);
  text-align: center;
  margin: 1.5rem 0 0 0;
}
.contact-en { display: none; }
body.en .contact-ar { display: none !important; }
body.en .contact-en { display: block !important; }
body:not(.en) .contact-ar { display: block !important; }
body:not(.en) .contact-en { display: none !important; }
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem 0;
}
.footer-logo img {
  width: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: #fff;
}
.footer-links a {
  color: var(--green);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold-dark);
}
.footer-contact {
  color: var(--white);
  font-size: 1rem;
}
footer {
  background: var(--gray-dark);
  color: var(--white);
  font-size: 1rem;
  border-radius: 0 0 18px 18px;
  margin-top: 2rem;
  animation: fadeIn 2s;
  padding-bottom: 0.5rem;
}
footer p {
  margin: 0.5rem 0 0 0;
  text-align: center;
}
/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes logoPop {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
/* اللغة الإنجليزية */
body.en {
  direction: ltr;
  text-align: left;
}
body.en .office-name { display: none; }
body.en .office-name-en { display: block; }
body.en .about-ar, body.en .services-ar, body.en .contact-ar, body.en .why-ar, body.en .faq-ar, body.en .office-name, body.en .stat-label, body.en .cta-btn, body.en .footer-links a:not(:nth-child(n+4)), body.en .footer-contact span:first-child, body.en h2:not(.office-name-en):not(:nth-of-type(2n)), body:not(.en) .about-en, body:not(.en) .services-en, body:not(.en) .contact-en, body:not(.en) .why-en, body:not(.en) .faq-en, body:not(.en) .office-name-en, body:not(.en) .stat-label-en, body:not(.en) .cta-btn-en, body:not(.en) .footer-links a:nth-child(n+4), body:not(.en) .footer-contact span:not(:first-child), body:not(.en) h2.office-name-en, body:not(.en) h2:nth-of-type(2n) {
  display: none !important;
}
body.en .about-en, body.en .services-en, body.en .contact-en, body.en .why-en, body.en .faq-en, body.en .office-name-en, body.en .stat-label-en, body.en .cta-btn-en, body.en .footer-links a:nth-child(n+4), body.en .footer-contact span:not(:first-child), body.en h2.office-name-en, body.en h2:nth-of-type(2n) {
  display: block !important;
}
body:not(.en) .about-ar, body:not(.en) .services-ar, body:not(.en) .contact-ar, body:not(.en) .why-ar, body:not(.en) .faq-ar, body:not(.en) .office-name, body:not(.en) .stat-label, body:not(.en) .cta-btn, body:not(.en) .footer-links a:not(:nth-child(n+4)), body:not(.en) .footer-contact span:first-child, body:not(.en) h2:not(.office-name-en):not(:nth-of-type(2n)) {
  display: block !important;
}
body:not(.en) .about-en, body:not(.en) .services-en, body:not(.en) .contact-en, body:not(.en) .why-en, body:not(.en) .faq-en, body:not(.en) .office-name-en, body:not(.en) .stat-label-en, body:not(.en) .cta-btn-en, body:not(.en) .footer-links a:nth-child(n+4), body:not(.en) .footer-contact span:not(:first-child), body:not(.en) h2.office-name-en, body:not(.en) h2:nth-of-type(2n) {
  display: none !important;
}
/* إخفاء احترافي لكل عناصر اللغة الأخرى عند التحويل */
.hide-ar { display: none !important; }
.hide-en { display: none !important; }
body.en .show-en { display: block !important; }
body.en .show-ar { display: none !important; }
body:not(.en) .show-ar { 
 display: block !important; }
body:not(.en) .show-en { display: none !important; }
/* إخفاء أي عنصر عربي داخل الإنجليزية والعكس */
body.en [lang="ar"], body.en .ar-only { display: none !important; }
body:not(.en) [lang="en"], body:not(.en) .en-only { display: none !important; }
.contact-flex {
  display: flex;
  gap: 0;
  background: var(--gray-dark);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px #bfa04633;
  flex-wrap: wrap;
}
.contact-info {
  flex: 1 1 340px;
  background: var(--gray-dark);
  color: var(--white);
  padding: 2.5rem 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
}
.contact-info h2 {
  color: var(--gold-dark);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-align: right;
}
.contact-info .contact-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e6e6e6;
  text-align: right;
}
.contact-icons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  font-size: 2rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.contact-label {
  font-weight: bold;
  color: var(--gold-dark);
  font-size: 1.1rem;
}
.contact-form-box {
  flex: 1 1 340px;
  background: var(--white);
  padding: 2.5rem 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
  border-right: 2px solid var(--gray);
}
.contact-form-box h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  text-align: right;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-form label {
  color: var(--gold-dark);
  font-weight: bold;
  margin-bottom: 0.2rem;
  text-align: right;
}
.contact-form input, .contact-form textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-dark);
  border-radius: 8px;
  font-size: 1rem;
  background: #f7f7f7;
  color: var(--dark);
  outline: none;
  transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid var(--gold-dark);
}
.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}
.send-btn {
  background: var(--gold-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.send-btn:hover {
  background: var(--green);
  color: var(--gold-dark);
  transform: scale(1.04);
}
/* دعم RTL/LTR */
body.en .contact-info, body.en .contact-form-box, body.en .contact-form label, body.en .contact-form-box h3 {
  text-align: left;
}
body.en .contact-info {
  border-left: 2px solid var(--gray);
  border-right: none;
}
body.en .contact-form-box {
  border-right: none;
  border-left: 2px solid var(--gray);
}
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
  }
  .contact-info, .contact-form-box {
    min-width: 0;
    padding: 1.5rem 1rem;
    border: none !important;
  }
}
/* ===== Responsive Design احترافي ===== */

/* شاشات كبيرة جداً (Desktop Large) */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-section { padding: 6rem 2rem 4rem 2rem; }
  .office-name, .office-name-en { font-size: 3.5rem; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* شاشات كبيرة (Desktop) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container { max-width: 1140px; }
  .hero-section { padding: 5rem 2rem 3rem 2rem; }
  .office-name, .office-name-en { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* شاشات متوسطة (Tablet Landscape) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container { max-width: 960px; }
  .hero-section { padding: 4rem 1.5rem 2.5rem 1.5rem; }
  .office-name, .office-name-en { font-size: 2.5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links, .nav-links-en { gap: 1rem; }
  .nav-link { font-size: 1rem; }
}

/* شاشات متوسطة صغيرة (Tablet Portrait) */
@media (min-width: 768px) and (max-width: 991px) {
  .container { max-width: 720px; }
  .hero-section { padding: 3rem 1rem 2rem 1rem; }
  .office-name, .office-name-en { font-size: 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-links-en { gap: 0.8rem; }
  .nav-link { font-size: 0.95rem; }
  .section { padding: 2rem 1rem; }
  .stat-box { min-width: 150px; padding: 1.5rem 1rem; }
}

/* شاشات صغيرة (Mobile Landscape) */
@media (min-width: 576px) and (max-width: 767px) {
  .container { max-width: 540px; }
  .hero-section { padding: 2.5rem 0.8rem 1.5rem 0.8rem; }
  .office-name, .office-name-en { font-size: 1.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 1.5rem 0.8rem; }
  .stat-box { min-width: 120px; padding: 1rem 0.8rem; }
  .contact-flex { flex-direction: column; }
  .contact-info, .contact-form-box { min-width: 0; }
}

/* شاشات صغيرة جداً (Mobile Portrait) */
@media (max-width: 575px) {
  .container { 
    max-width: 100%; 
    padding: 0 0.8rem; 
    width: 100%;
    box-sizing: border-box;
  }
  .hero-section { 
    padding: 2rem 0.5rem 1rem 0.5rem; 
    width: 100%;
    max-width: 100vw;
  }
  .office-name, .office-name-en { 
    font-size: 1.5rem; 
    line-height: 1.3; 
    word-wrap: break-word;
  }
  .services-grid { 
    grid-template-columns: 1fr; 
    width: 100%;
    max-width: 100%;
  }
  .why-grid { 
    grid-template-columns: 1fr; 
    width: 100%;
    max-width: 100%;
  }
  .section { 
    padding: 1rem 0.5rem; 
    width: 100%;
    max-width: 100vw;
  }
  .stat-box { 
    min-width: 100px; 
    padding: 0.8rem 0.5rem; 
    max-width: 100%;
  }
  .contact-flex { 
    flex-direction: column; 
    width: 100%;
    max-width: 100%;
  }
  .contact-info, .contact-form-box { 
    min-width: 0; 
    padding: 1rem 0.5rem; 
    width: 100%;
    max-width: 100%;
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
    width: 100%;
    max-width: 100%;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
/* تحسينات للشاشات المتوسطة والصغيرة */
@media (max-width: 1200px) {
  .nav-links, .nav-links-en {
    gap: 0.8rem;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.2rem 0.4rem;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .nav-links, .nav-links-en {
    gap: 0.6rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.2rem 0.3rem;
  }
  .service-card h3 {
    font-size: 1rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-flex {
    flex-direction: column;
    gap: 0.3rem;
  }
  .nav-links, .nav-links-en {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.2rem;
  }
}

@media (max-width: 768px) {
  .service-card .thumb { height: 100px; }
  .service-card { padding: 1rem; }
  .why-card { padding: 1.2rem 1rem; }
  .why-icon { width: 48px; height: 48px; font-size: 28px; }
  .partners-slider { padding: 1rem 0; }
  .slider-track img { width: 100px; height: 60px; }
}

@media (max-width: 480px) {
  .service-card .thumb { height: 80px; }
  .service-card { padding: 0.8rem; }
  .why-card { padding: 1rem 0.8rem; }
  .why-icon { width: 40px; height: 40px; font-size: 24px; }
  .partners-slider { padding: 0.8rem 0; }
  .slider-track img { width: 80px; height: 50px; }
  .slider-track { gap: 1.5rem; }
}
.service-card {
  background: var(--white);
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  box-shadow: 0 4px 14px #bfa04622;
  padding: 1.2rem 1.2rem 1.4rem 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.service-card h3 {
  color: var(--green);
  margin: 0 0 0.6rem 0;
  font-size: 1.2rem;
  word-wrap: break-word;
  hyphens: auto;
}
.service-card p {
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.7;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}
.service-link {
  display: inline-block;
  color: var(--white);
  background: var(--gold-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 26px #bfa04633;
}
.service-link:hover {
  background: var(--green);
  color: var(--gold-dark);
  transform: scale(1.05);
}
.service-card .thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: #eee center/cover no-repeat;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 0 0 2px #ffffffaa;
}
.service-card .icon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f4f0;
  border: 2px solid var(--gold-dark);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px #bfa04622;
}
body.en .service-card .icon-badge { left: 12px; right: auto; }
@media (max-width: 640px) {
  .service-card .thumb { height: 180px; }
}
/* إخفاء/إظهار اللغات */
.services-en { display: none; }
body.en .services-ar { display: none !important; }
body.en .services-en { display: grid !important; }
body:not(.en) .services-ar { display: grid !important; }
body:not(.en) .services-en { display: none !important; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 1200px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  box-shadow: 0 4px 14px #bfa04622;
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 12px;
  background: var(--gold-dark);
  border-radius: 0 0 8px 8px;
  top: -2px;
  right: 24px;
}
body.en .why-card::before { left: 24px; right: auto; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 10px 26px #bfa04633; }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f4f6f4;
  border: 2px solid var(--gold-dark);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 56px;
  margin-bottom: 0.8rem;
}
.why-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
}
.why-title { color: #0e3a22; }
.why-desc { color: #333; line-height: 1.9; margin: 0; }
.why-counter { margin-top: 0.8rem; }
.counter-num { display: block; font-weight: 800; color: var(--gold-dark); font-size: 1.6rem; }
.counter-label { display: block; color: #546; font-size: 0.95rem; margin-top: 0.1rem; }
/* إخفاء/إظهار لغات قسم لماذا */
.why-en { display: none; }
body.en .why-ar { display: none !important; }
body.en .why-en { display: grid !important; }
body:not(.en) .why-ar { display: grid !important; }
body:not(.en) .why-en { display: none !important; }

.why-style2 .why-grid {
  display: flex;
  flex-direction: column-reverse; /* لإظهار مثل ترتيب الصورة (الأخير أسفل) */
  align-items: center;
  gap: 1.2rem;
}
.why-style2 .why-card {
  width: 640px;
  max-width: 92%;
  background: #fff9e8;
  border: 2px solid var(--gold-dark);
  border-radius: 20px;
  box-shadow: none;
}
.why-style2 .why-title { color: var(--green); font-size: 1.4rem; }
.why-style2 .why-desc { display: none; }
.why-style2 .why-counter { display: none; }
@media (max-width: 700px) {
  .why-style2 .why-card { width: 100%; }
}

.site-footer {
  background: var(--gray-dark);
  color: var(--white);
  margin-top: 2.5rem;
  border-radius: 18px 18px 0 0;
}
.site-footer .footer-top {
  padding: 2.2rem 0 1.6rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-col h4 {
  color: var(--gold-dark);
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
}
.footer-col p, .footer-col a, .footer-col li, .footer-col span {
  color: #e8e8e8;
  font-size: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.45rem 0; }
.footer-col a { text-decoration: none; color: #cfe7d8; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-dark); }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-dark); background: #fff; }
.footer-contact .row { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0; }
.footer-contact .ico { width: 28px; height: 28px; border-radius: 50%; background: #0f2c1b; color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid #ffffff22; padding: 0.8rem 0; text-align: center; color: #d9d9d9; font-size: 0.95rem; }
/* Responsive */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* تحسين الفوتر ليكون أكثر وضوحاً واحترافية */
.site-footer {
  background: #232323;
  color: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 12px #bfa04633;
  font-size: 1.08rem;
}
.footer-top {
  padding: 2.5rem 0 1.8rem 0;
}
.footer-grid {
  gap: 2.5rem;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a, .footer-col li, .footer-col span {
  color: #f7f7f7;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.footer-col a {
  color: #ffe082;
  font-weight: bold;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}
.footer-brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  background: #fff;
  box-shadow: 0 2px 8px #bfa04633;
}
.footer-contact .row {
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 1.08rem;
}
.footer-contact .ico {
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  background: var(--gold-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #bfa04633;
}
.footer-bottom {
  border-top: 1.5px solid #bfa04644;
  padding: 1.1rem 0 0.7rem 0;
  text-align: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #0008, 0 1px 2px #bfa04688;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .footer-brand img {
    width: 50px;
    height: 50px;
  }
  .footer-col h4 {
    font-size: 1.1rem;
  }
  .footer-col p, .footer-col a, .footer-col li, .footer-col span {
    font-size: 1rem;
  }
  .footer-contact .row {
    font-size: 1rem;
    gap: 0.6rem;
  }
  .footer-contact .ico {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }
  .footer-bottom {
    font-size: 0.95rem;
    padding: 0.7rem 0;
  }
}
@media (max-width: 500px) {
  .footer-brand img {
    width: 36px;
    height: 36px;
  }
  .footer-col h4 {
    font-size: 0.95rem;
  }
  .footer-col p, .footer-col a, .footer-col li, .footer-col span {
    font-size: 0.9rem;
  }
  .footer-contact .row {
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  .footer-contact .ico {
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}
/* تحسين ظهور معلومات الاتصال بجانب الأيقونات */
.footer-contact .row {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 0.35rem 0;
}
.footer-contact .ico {
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.footer-contact span {
  display: inline-block;
  vertical-align: middle;
  color: #e8e8e8;
  font-size: 1rem;
  margin-right: 0.2rem;
}
@media (max-width: 500px) {
  .footer-contact .row {
    gap: 0.4rem;
    font-size: 0.9rem;
  }
  .footer-contact .ico {
    min-width: 20px;
    min-height: 20px;
    font-size: 1rem;
  }
  .footer-contact span {
    font-size: 0.85rem;
    margin-right: 0.1rem;
  }
}
.social-links { margin-top: 0.8rem; display: flex; gap: 0.6rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dark);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px #0003;
}
.social-links a:hover { background: var(--green); transform: translateY(-3px); }
.social-links .wa { background: #25d366; }
.social-links .tw { background: #1da1f2; }
.social-links .in { background: #0a66c2; }
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px #25d36666, 0 2px 8px #0003;
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.social-links a svg { width: 18px; height: 18px; fill: #fff; display: block; }

.hero-contacts { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-contact { background: #ffffffcc; color: var(--green); border: 1px solid var(--gold-dark); padding: 0.4rem 0.8rem; border-radius: 10px; text-decoration: none; font-weight: bold; }
.contacts-en { display: none; }
body.en .contacts-ar { display: none !important; }
body.en .contacts-en { display: flex !important; }

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .sidebar-toggle {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
  body.en .sidebar-toggle {
    left: 15px;
    right: auto;
  }
  .sidebar-menu {
    width: 90vw;
    max-width: 300px;
  }
  .sidebar-logo {
    width: 50px;
    height: 50px;
  }
  .sidebar-links {
    padding: 0 1rem;
    gap: 0.8rem;
  }
  .sidebar-links li a {
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
  }
  .sidebar-lang-switch button {
    padding: 0.25rem 0.8rem;
    font-size: 0.9rem;
  }
  .logo-nav {
    width: 45px;
    height: 45px;
  }
  .navbar .container {
    padding: 0 0.8rem;
  }
}

/* شركاء النجاح - سلايدر متحرك متواصل */
.partners-section {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px #bfa04622;
  margin: 2.5rem auto;
  padding: 2.5rem 1.5rem;
  position: relative;
  animation: fadeInUp 1.2s;
}
.partners-section h2 {
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 2rem;
}
/* شركاء النجاح - سلايدر متحرك متواصل */
.partners-slider {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 0;
  position: relative;
  direction: ltr;
}
.slider-track {
  display: flex;
  width: max-content;
  animation: scrollSlider 30s linear infinite;
  gap: 2.5rem;
}
.slider-track img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid var(--gold-dark);
  background: #fffbe6;
  box-shadow: 0 2px 8px #bfa04622;
  margin: 0 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.slider-track img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 24px #bfa04644;
  border-color: var(--green);
}
@keyframes scrollSlider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .slider-track img { width: 120px; height: 70px; }
  .partners-section h2 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .slider-track img { width: 80px; height: 50px; }
  .partners-section { padding: 1.2rem 0.3rem; }
}

/* ===== Sidebar للجوال ===== */
.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--gold-dark);
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px #bfa04633;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.sidebar-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 900px) {
  .sidebar-toggle { 
    display: flex; 
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1201;
  }
  body.en .sidebar-toggle {
    right: auto;
    left: 18px;
  }
  .navbar { 
    padding: 0.8rem 0;
    background: var(--white);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 2px 12px #bfa04622;
  }
  .nav-links, .nav-links-en, .lang-switch {
    display: none !important;
  }
  .navbar .container {
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  .logo-nav {
    margin: 0;
    width: 50px;
    height: 50px;
  }
  .sidebar-menu {
    width: 85vw;
    max-width: 320px;
  }
  .sidebar-logo {
    width: 55px;
    height: 55px;
  }
  .sidebar-links {
    padding: 0 1.2rem;
    gap: 1rem;
  }
  .sidebar-links li a {
    font-size: 1.1rem;
    padding: 0.5rem 0.3rem;
  }
}
/* ضبط السايدبار لمنع التمرير الأفقي */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 82vw;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  box-shadow: -2px 0 18px #bfa04633;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.sidebar-menu.open {
  transform: translateX(0);
}
/* إخفاء زر القائمة عند فتح السايدبار */
.sidebar-menu.open ~ .sidebar-toggle {
  display: none !important;
}
body.en .sidebar-menu {
  right: auto;
  left: 0;
  box-shadow: 2px 0 18px #bfa04633;
  transform: translateX(-100%);
}
body.en .sidebar-menu.open {
  transform: translateX(0);
}
/* رأس السايدبار الجديد */
.sidebar-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.2rem 1.2rem 0.2rem 1.2rem;
  border-bottom: none;
  background: none;
}
.sidebar-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
}
.sidebar-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: #fff;
  margin-bottom: 0.7rem;
}
.sidebar-lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.sidebar-lang-switch button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0.3rem 1.1rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.sidebar-lang-switch button.active,
.sidebar-lang-switch button:hover {
  background: var(--green);
  color: var(--gold);
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--gold-dark);
  cursor: pointer;
  margin: 0;
  align-self: flex-start;
}
.sidebar-links {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sidebar-links li a {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem 0.2rem;
  border-radius: 6px;
}
.sidebar-links li a:hover {
  color: var(--gold-dark);
  background: #f7f7f7;
}
.sidebar-links-en { display: none; }
body.en .sidebar-links-ar { display: none !important; }
body.en .sidebar-links-en { display: flex !important; }
body:not(.en) .sidebar-links-ar { display: flex !important; }
body:not(.en) .sidebar-links-en { display: none !important; }
@media (min-width: 901px) {
  .sidebar-toggle, .sidebar-menu { display: none !important; }
}
/* طبقة خلفية عند فتح السايدبار */
.sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0007;
  z-index: 1199;
  display: none;
}
.sidebar-backdrop.open { display: block; }

/* أزرار تحويل اللغة داخل السايدبار */
.sidebar-lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-right: 0.7rem;
}
body.en .sidebar-lang-switch { margin-left: 0.7rem; margin-right: 0; }
.sidebar-lang-switch button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0.3rem 1.1rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.sidebar-lang-switch button.active,
.sidebar-lang-switch button:hover {
  background: var(--green);
  color: var(--gold);
}
@media (max-width: 900px) {
  .sidebar-header { flex-direction: row; gap: 0.5rem; }
  .sidebar-lang-switch { margin-top: 0; }
}
/* ترتيب ومحاذاة رأس السايدبار */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  flex-direction: row;
}
.sidebar-logo {
  order: 1;
}
.sidebar-lang-switch {
  order: 2;
}
.sidebar-close {
  order: 3;
  margin-right: auto;
  margin-left: 0;
}
body.en .sidebar-header {
  flex-direction: row-reverse;
}
body.en .sidebar-logo { order: 1; }
body.en .sidebar-lang-switch { order: 2; }
body.en .sidebar-close { order: 3; margin-left: auto; margin-right: 0; }

/* فرض عرض شبكة البطاقات لقسم الخدمات */
.services-section .services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 1000px) {
  .services-section .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .services-section .services-grid { grid-template-columns: 1fr !important; }
}
