/* دعم اللغتين العربية والإنجليزية */

/* اتجاه النص للعربية */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .ic-navbar-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .ic-navbar-collapse ul {
  flex-direction: row-reverse;
}

[dir="rtl"] .flex {
  flex-direction: row-reverse;
}

[dir="rtl"] .gap-2 > * + * {
  margin-right: 0.5rem;
  margin-left: 0;
}

[dir="rtl"] .gap-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

[dir="rtl"] .gap-5 > * + * {
  margin-right: 1.25rem;
  margin-left: 0;
}

[dir="rtl"] .gap-6 > * + * {
  margin-right: 1.5rem;
  margin-left: 0;
}

/* اتجاه النص للإنجليزية */
[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .ic-navbar-container {
  flex-direction: row;
}

[dir="ltr"] .ic-navbar-collapse ul {
  flex-direction: row;
}

[dir="ltr"] .flex {
  flex-direction: row;
}

/* إصلاح مشكلة القائمة المنسدلة */
/* القائمة تظهر على اليسار دائماً لتجنب التداخل مع زر تغيير اللغة */
.ic-navbar-collapse {
  left: 1rem !important;
  right: auto !important;
}

.ic-navbar-toggler {
  left: 1rem !important;
  right: auto !important;
}

/* تحسينات للزر */
#languageToggle {
  transition: all 0.3s ease;
  font-weight: bold;
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
}

#languageToggle:hover {
  transform: scale(1.1);
}

/* ضمان أن زر تغيير اللغة يكون بنفس حجم زر تغيير المود */
#languageToggle,
[data-web-trigger="web-theme"] {
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
}

/* تحسينات للتنقل */
[dir="rtl"] .ic-navbar-toggler {
  left: 1rem !important;
  right: auto !important;
}

[dir="ltr"] .ic-navbar-toggler {
  left: 1rem !important;
  right: auto !important;
}

/* تحسينات للقوائم */
[dir="rtl"] .portfolio-menu button {
  margin-left: 0.5rem;
  margin-right: 0;
}

[dir="ltr"] .portfolio-menu button {
  margin-right: 0.5rem;
  margin-left: 0;
}

/* تحسينات للفريق */
[dir="rtl"] .team-member .social-links {
  flex-direction: row-reverse;
}

[dir="ltr"] .team-member .social-links {
  flex-direction: row;
}

/* أيقونات التواصل تبقى في اليسار دائماً */
.social-links {
  direction: ltr !important;
  flex-direction: row !important;
}

[dir="rtl"] .social-links {
  direction: ltr !important;
  flex-direction: row !important;
}

[dir="ltr"] .social-links {
  direction: ltr !important;
  flex-direction: row !important;
}

/* أيقونات Footer تبقى في المنتصف دائماً */
.footer-social-links {
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: center !important;
  text-align: center !important;
}

[dir="rtl"] .footer-social-links {
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: center !important;
  text-align: center !important;
}

[dir="ltr"] .footer-social-links {
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: center !important;
  text-align: center !important;
}

/* نص Footer يبقى في المنتصف */
[data-translate="footer-description"] {
  text-align: center !important;
}

/* العناوين الرئيسية في Portfolio تبقى في المنتصف */
[data-translate="portfolio-title"],
[data-translate="portfolio-heading"],
[data-translate="portfolio-subtitle"] {
  text-align: center !important;
}

/* أزرار التصفية في Portfolio تبقى في المنتصف */
.portfolio-menu {
  text-align: center !important;
}

.portfolio-menu button {
  text-align: center !important;
}

/* العناوين الرئيسية في Team تبقى في المنتصف */
[data-translate="team-title"],
[data-translate="team-heading"],
[data-translate="team-subtitle"] {
  text-align: center !important;
}

/* أسماء الفريق تبقى في المنتصف */
[data-translate*="team-member"] {
  text-align: center !important;
}

/* قسم Portfolio بالكامل يبقى في المنتصف */
#portfolio .scroll-revealed {
  text-align: center !important;
}

/* قسم Team بالكامل يبقى في المنتصف */
#team .scroll-revealed {
  text-align: center !important;
}

/* تحسينات للاتصال */
[dir="rtl"] .contact-card {
  text-align: right;
}

[dir="ltr"] .contact-card {
  text-align: left;
}

/* تحسينات عامة */
[dir="rtl"] .text-center {
  text-align: center !important;
}

[dir="ltr"] .text-center {
  text-align: center !important;
}

/* تحسينات للخدمات */
[dir="rtl"] .service-card {
  text-align: right;
}

[dir="ltr"] .service-card {
  text-align: left;
}

/* تحسينات للأسئلة الشائعة */
[dir="rtl"] .faq-item {
  text-align: right;
}

[dir="ltr"] .faq-item {
  text-align: left;
}

/* تحسينات للعناوين */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  text-align: right;
}

[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] h5, [dir="ltr"] h6 {
  text-align: left;
}

/* العناوين الرئيسية تبقى في المنتصف */
[data-translate="hero-title"],
[data-translate="hero-subtitle"] {
  text-align: center !important;
}

/* تحسينات للقسم الرئيسي */
#home .scroll-revealed {
  text-align: center !important;
}

#home h1,
#home h2,
#home p {
  text-align: center !important;
}

/* تحسينات للعنوان الرئيسي */
.hero-section h1,
.hero-section h2,
.hero-section p {
  text-align: center !important;
}

/* تحسينات خاصة للعنوان الرئيسي */
[data-translate="hero-title"] {
  text-align: center !important;
  font-size: 3rem !important;
  font-weight: bold !important;
}

[data-translate="hero-subtitle"] {
  text-align: center !important;
  font-size: 1.5rem !important;
  margin-top: 1rem !important;
}

/* تحسينات للفقرات */
[dir="rtl"] p {
  text-align: right;
}

[dir="ltr"] p {
  text-align: left;
}

/* تحسينات للأزرار */
[dir="rtl"] .btn {
  text-align: center;
}

[dir="ltr"] .btn {
  text-align: center;
}

/* تحسينات للقوائم */
[dir="rtl"] ul, [dir="rtl"] ol {
  text-align: right;
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="ltr"] ul, [dir="ltr"] ol {
  text-align: left;
  padding-left: 1.5rem;
  padding-right: 0;
}

/* تحسينات للروابط */
[dir="rtl"] a {
  text-align: right;
}

[dir="ltr"] a {
  text-align: left;
}

/* تحسينات للصور */
[dir="rtl"] img {
  text-align: center;
  display: block;
  margin: 0 auto;
}

[dir="ltr"] img {
  text-align: center;
  display: block;
  margin: 0 auto;
}

/* تحسينات للبطاقات */
[dir="rtl"] .card {
  text-align: right;
}

[dir="ltr"] .card {
  text-align: left;
}

/* تحسينات للجداول */
[dir="rtl"] table {
  direction: rtl;
}

[dir="ltr"] table {
  direction: ltr;
}

/* تحسينات لحقول الإدخال */
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
  text-align: right;
}

[dir="ltr"] input, [dir="ltr"] textarea, [dir="ltr"] select {
  text-align: left;
}

/* تحسينات للتنبيهات */
[dir="rtl"] .alert {
  text-align: right;
}

[dir="ltr"] .alert {
  text-align: left;
}

/* تحسينات للشريط الجانبي */
[dir="rtl"] .sidebar {
  text-align: right;
  border-right: none;
  border-left: 1px solid #e5e7eb;
}

[dir="ltr"] .sidebar {
  text-align: left;
  border-left: none;
  border-right: 1px solid #e5e7eb;
}

/* تحسينات للقوائم المنسدلة */
[dir="rtl"] .dropdown-menu {
  text-align: right;
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu {
  text-align: left;
  left: 0;
  right: auto;
}

/* تحسينات للترقيم */
[dir="rtl"] .pagination {
  flex-direction: row-reverse;
}

[dir="ltr"] .pagination {
  flex-direction: row;
}

/* تحسينات لشريط التنقل */
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse;
}

[dir="ltr"] .navbar-nav {
  flex-direction: row;
}

/* تحسينات للعلامة التجارية */
[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="ltr"] .navbar-brand {
  margin-left: 0;
  margin-right: 1rem;
}

/* تحسينات لصندوق البحث */
[dir="rtl"] .search-box {
  text-align: right;
}

[dir="ltr"] .search-box {
  text-align: left;
}

/* تحسينات للتنبيهات */
[dir="rtl"] .toast {
  text-align: right;
}

[dir="ltr"] .toast {
  text-align: left;
}

/* تحسينات لسهم القائمة المنسدلة */
[dir="rtl"] .dropdown-toggle::after {
  margin-right: 0.255em;
  margin-left: 0;
}

[dir="ltr"] .dropdown-toggle::after {
  margin-left: 0.255em;
  margin-right: 0;
}

/* تحسينات لعناصر القائمة المنسدلة */
[dir="rtl"] .dropdown-item {
  text-align: right;
}

[dir="ltr"] .dropdown-item {
  text-align: left;
}

/* تحسينات لفاصل القائمة المنسدلة */
[dir="rtl"] .dropdown-divider {
  margin-right: 0;
  margin-left: 0;
}

[dir="ltr"] .dropdown-divider {
  margin-left: 0;
  margin-right: 0;
}

/* تحسينات لرأس القائمة المنسدلة */
[dir="rtl"] .dropdown-header {
  text-align: right;
}

[dir="ltr"] .dropdown-header {
  text-align: left;
}

/* تحسينات لنص القائمة المنسدلة */
[dir="rtl"] .dropdown-text {
  text-align: right;
}

[dir="ltr"] .dropdown-text {
  text-align: left;
}

/* تحسينات لحجم القائمة المنسدلة الصغير */
[dir="rtl"] .dropdown-menu-sm {
  min-width: 8rem;
}

[dir="ltr"] .dropdown-menu-sm {
  min-width: 8rem;
}

/* تحسينات لحجم القائمة المنسدلة الكبير */
[dir="rtl"] .dropdown-menu-lg {
  min-width: 16rem;
}

[dir="ltr"] .dropdown-menu-lg {
  min-width: 16rem;
}

/* تحسينات لحجم القائمة المنسدلة الكبير جداً */
[dir="rtl"] .dropdown-menu-xl {
  min-width: 20rem;
}

[dir="ltr"] .dropdown-menu-xl {
  min-width: 20rem;
}

/* تحسينات لحجم القائمة المنسدلة الكبير جداً جداً */
[dir="rtl"] .dropdown-menu-xxl {
  min-width: 24rem;
}

[dir="ltr"] .dropdown-menu-xxl {
  min-width: 24rem;
}

/* تحسينات للقائمة المنسدلة المتمركزة */
[dir="rtl"] .dropdown-menu-centered {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

[dir="ltr"] .dropdown-menu-centered {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* تحسينات للقائمة المنسدلة اليمنى */
[dir="rtl"] .dropdown-menu-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى */
[dir="rtl"] .dropdown-menu-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-left {
  right: 0;
  left: auto;
}

/* تحسينات للقائمة المنسدلة اليمنى الصغيرة */
[dir="rtl"] .dropdown-menu-sm-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-sm-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى الصغيرة */
[dir="rtl"] .dropdown-menu-sm-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-sm-left {
  right: 0;
  left: auto;
}

/* تحسينات للقائمة المنسدلة اليمنى المتوسطة */
[dir="rtl"] .dropdown-menu-md-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-md-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى المتوسطة */
[dir="rtl"] .dropdown-menu-md-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-md-left {
  right: 0;
  left: auto;
}

/* تحسينات للقائمة المنسدلة اليمنى الكبيرة */
[dir="rtl"] .dropdown-menu-lg-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-lg-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى الكبيرة */
[dir="rtl"] .dropdown-menu-lg-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-lg-left {
  right: 0;
  left: auto;
}

/* تحسينات للقائمة المنسدلة اليمنى الكبيرة جداً */
[dir="rtl"] .dropdown-menu-xl-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-xl-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى الكبيرة جداً */
[dir="rtl"] .dropdown-menu-xl-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-xl-left {
  right: 0;
  left: auto;
}

/* تحسينات للقائمة المنسدلة اليمنى الكبيرة جداً جداً */
[dir="rtl"] .dropdown-menu-xxl-right {
  right: 0;
  left: auto;
}

[dir="ltr"] .dropdown-menu-xxl-right {
  left: 0;
  right: auto;
}

/* تحسينات للقائمة المنسدلة اليسرى الكبيرة جداً جداً */
[dir="rtl"] .dropdown-menu-xxl-left {
  left: 0;
  right: auto;
}

[dir="ltr"] .dropdown-menu-xxl-left {
  right: 0;
  left: auto;
}

/* تحسينات خاصة للأسئلة الشائعة */
[data-translate^="faq-title"],
[data-translate^="faq-heading"],
[data-translate^="faq-subtitle"] {
  text-align: center !important;
}

/* تحسينات خاصة للاتصال */
[data-translate^="contact-title"],
[data-translate^="contact-heading"],
[data-translate^="contact-subtitle"] {
  text-align: center !important;
}

/* تحسينات خاصة للخدمات */
[data-translate^="services-title"],
[data-translate^="services-heading"],
[data-translate^="services-subtitle"] {
  text-align: center !important;
}

#services .scroll-revealed {
  text-align: center !important;
}

/* تحسينات خاصة لقسم الخدمات */
#services {
  text-align: center;
}

#services .container {
  text-align: center;
}

#services .row {
  text-align: center;
}

#services .col-12,
#services .col-6,
#services .col-4 {
  text-align: center;
}

#services .group {
  text-align: center;
}

#services .w-full {
  text-align: center;
}

#services h4,
#services p {
  text-align: center !important;
}

/* تحسينات خاصة للـ Footer */
footer, .footer-social-links, [data-translate="footer-description"], [data-translate="footer-copyright"] {
  text-align: center !important;
}

.footer-social-links {
  text-align: center !important;
  justify-content: center !important;
}

/* تحسينات خاصة للـ Footer */
footer .container {
  text-align: center !important;
}

footer .flex {
  text-align: center !important;
  justify-content: center !important;
}

footer p {
  text-align: center !important;
}

footer .footer-social-links {
  text-align: center !important;
  justify-content: center !important;
}

/* تحسينات خاصة للـ Footer */
footer .text-center {
  text-align: center !important;
}

/* تحسينات خاصة للـ Footer */
footer .py-8 .container {
  text-align: center !important;
}

footer .py-8 .flex {
  text-align: center !important;
  justify-content: center !important;
}

footer .py-8 .mb-6 {
  text-align: center !important;
}

footer .py-8 .text-center {
  text-align: center !important;
}

/* تحسينات خاصة لوصف الـ Footer */
footer [data-translate="footer-description"] {
  text-align: center !important;
}

footer .footer-social-links {
  text-align: center !important;
  justify-content: center !important;
}

/* تحسينات خاصة لحقوق النشر */
[data-translate="footer-copyright"] {
  text-align: center !important;
}

/* تحسينات خاصة لحقوق النشر بالعربية */
[lang="ar"] [data-translate="footer-copyright"] {
  text-align: center !important;
}

/* تحسينات خاصة لحقوق النشر بالإنجليزية */
[lang="en"] [data-translate="footer-copyright"] {
  text-align: center !important;
}

/* تحسينات خاصة لأيقونات التواصل في الـ Footer */
.footer-social-links {
  text-align: center !important;
  justify-content: center !important;
  direction: ltr !important;
}

.footer-social-links a {
  text-align: center !important;
}

/* تحسينات خاصة لأيقونات التواصل في الـ Footer */
footer .footer-social-links {
  text-align: center !important;
  justify-content: center !important;
  direction: ltr !important;
}

footer .footer-social-links a {
  text-align: center !important;
}

/* تحسينات خاصة لأيقونات التواصل في الـ Footer */
.footer-social-links.flex {
  text-align: center !important;
}

.footer-social-links.flex.items-center {
  text-align: center !important;
  justify-content: center !important;
}

/* تحسينات خاصة لعناوين الـ Footer */
[data-translate="footer-solutions"],
[data-translate="footer-support"] {
  text-align: center !important;
}

/* تحسينات خاصة لصفوف الـ Footer */
.row {
  text-align: center !important;
}

.row::after {
  text-align: center !important;
}

/* تحسينات خاصة لأعمدة الـ Footer */
.col-6.lg\:col-2 {
  text-align: center !important;
}

.col-6.lg\:col-2:first-child {
  text-align: center !important;
}

.col-6.lg\:col-2:last-child {
  text-align: center !important;
}

.col-6.lg\:col-2 h4 {
  text-align: center !important;
}

.col-6.lg\:col-2 ul {
  text-align: center !important;
}

.col-6.lg\:col-2 li {
  text-align: center !important;
}

.col-6.lg\:col-2 a {
  text-align: center !important;
}

.col-6.lg\:col-2 a:hover {
  text-align: center !important;
}

/* تحسينات للتجاوب مع التليفون */
@media (max-width: 768px) {
  /* إصلاح مشكلة القائمة المنسدلة على التليفون */
  .ic-navbar-collapse {
    left: 1rem !important;
    right: auto !important;
    max-width: 280px !important;
  }
  
  .ic-navbar-toggler {
    left: 1rem !important;
    right: auto !important;
  }
  
  /* تحسينات للنصوص على التليفون */
  [data-translate="hero-title"] {
    font-size: 2rem !important;
  }
  
  [data-translate="hero-subtitle"] {
    font-size: 1.2rem !important;
  }
  
  /* تحسينات للقوائم على التليفون */
  [dir="rtl"] .ic-navbar-collapse ul {
    text-align: right;
  }
  
  [dir="ltr"] .ic-navbar-collapse ul {
    text-align: left;
  }
  
  /* تحسينات للأزرار على التليفون */
  #languageToggle {
    font-size: 20px !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  /* تحسينات للخدمات على التليفون */
  .service-card {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  /* تحسينات للفريق على التليفون */
  .team-member {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  /* تحسينات للأسئلة الشائعة على التليفون */
  .faq-item {
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  /* تحسينات للاتصال على التليفون */
  .contact-card {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
}

/* تحسينات إضافية للتليفون الصغير */
@media (max-width: 480px) {
  [data-translate="hero-title"] {
    font-size: 1.8rem !important;
  }
  
  [data-translate="hero-subtitle"] {
    font-size: 1rem !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* تحسينات للتنقل على التليفون الصغير */
  .ic-navbar-toggler {
    left: 0.5rem !important;
    right: auto !important;
  }
  
  .ic-navbar-collapse {
    left: 0.5rem !important;
    right: auto !important;
    max-width: 250px !important;
  }
  
  /* تحسينات للأزرار على التليفون الصغير */
  #languageToggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
} 