/*
    التنسيقات المخصصة لموقع المسار للاستشارات
*/

/* الخطوط العامة - بدون تحديد اتجاه */
body {
     font-family: 'Tajawal', sans-serif;
     padding-top: 0;
}

/* تنسيقات خاصة بالعربية */
[dir="rtl"] body {
     text-align: right;
     font-family: 'Tajawal', sans-serif;
}

/* تنسيقات خاصة بالإنجليزية */
[dir="ltr"] body {
     text-align: left;
     font-family: 'Montserrat', sans-serif;
}

/* دعم الاتجاهين للهوامش */
[dir="rtl"] .me-auto {
     margin-right: auto !important;
     margin-left: 0 !important;
}

[dir="ltr"] .me-auto {
     margin-left: auto !important;
     margin-right: 0 !important;
}

[dir="rtl"] .ms-2 {
     margin-right: 0.5rem !important;
     margin-left: 0 !important;
}

[dir="ltr"] .ms-2 {
     margin-left: 0.5rem !important;
     margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
     margin-left: 0.5rem !important;
     margin-right: 0 !important;
}

[dir="ltr"] .me-2 {
     margin-right: 0.5rem !important;
     margin-left: 0 !important;
}

/* مسار التنقل (Breadcrumb) */
[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
     content: "\\";
     padding-left: 0.5rem;
     padding-right: 0;
}

[dir="ltr"] .breadcrumb-item+.breadcrumb-item::before {
     content: "/";
     padding-right: 0.5rem;
     padding-left: 0;
}

/* تعديلات للأيقونات */
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-left {
     transform: rotate(180deg);
}

[dir="ltr"] .fa-arrow-right,
[dir="ltr"] .fa-chevron-right {
     transform: rotate(180deg);
}

/* شريط التنقل */
.navbar {
     background: rgba(255, 255, 255, 0.95) !important;
     backdrop-filter: blur(10px);
     box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
     padding: 15px 0;
}

.navbar-brand {
     padding: 5px 0;
     transition: all 0.3s ease;
}

.navbar-brand img.hei_img {
     height: 80px;
     transition: transform 0.3s ease;
}

.navbar-brand:hover img {
     transform: scale(1.05);
}

.navbar-brand img:hover {
     transform: scale(1.05);
}

/* تنسيق القائمة - Bootstrap يتولى الترتيب حسب dir */
.navbar-nav {
     display: flex;
}

.company-name {
     font-size: 1.3rem;
     font-weight: 600;
     color: #00478c;
     white-space: nowrap;
}

/* تحسين شكل الأزرار */
.navbar .btn {
     font-size: 0.9rem;
     padding: 8px 16px;
     transition: all 0.3s ease;
}

.navbar .btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(0, 71, 140, 0.2);
}

/* تنسيق القائمة المنسدلة */
.dropdown-menu {
     border: none;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
     border-radius: 15px;
     padding: 10px 0;
     margin-top: 10px;
}

.dropdown-item {
     padding: 8px 20px;
     transition: all 0.3s ease;
     font-size: 14px;
}

.dropdown-item:hover {
     background-color: #f8f9fa;
     color: #00478c;
     transform: translateX(5px);
}

[dir="ltr"] .dropdown-item:hover {
     transform: translateX(-5px);
}

.dropdown-item i {
     color: #00478c;
}

/* تنسيقات خاصة بالاتجاهات */
[dir="rtl"] .navbar-brand {
     flex-direction: row;
}

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

[dir="rtl"] .company-name {
     margin-right: 10px;
     margin-left: 0;
}

[dir="ltr"] .company-name {
     margin-left: 10px;
     margin-right: 0;
}

[dir="rtl"] .navbar-nav {
     padding-right: 0;
}

[dir="ltr"] .navbar-nav {
     padding-left: 0;
}

/* الأزرار في شريط التنقل */
[dir="rtl"] .d-flex.align-items-center {
     flex-direction: row;
}

[dir="ltr"] .d-flex.align-items-center {
     flex-direction: row;
}

/* Hero Slider */
.hero-slider {
     height: 90vh;
     min-height: 600px;
     overflow: hidden;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
     height: 100%;
}

.slide-bg {
     height: 100%;
     width: 100%;
     position: relative;
}

.hero-image {
     max-height: 400px;
     animation: float 6s ease-in-out infinite;
}

@keyframes float {
     0%, 100% {
          transform: translateY(0);
     }

     50% {
          transform: translateY(-20px);
     }
}

.carousel-indicators button {
     width: 12px;
     height: 12px;
     border-radius: 50%;
     margin: 0 5px;
}

/* خدمة البطاقات */
.service-card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
     transform: translateY(-10px);
}

.service-card .card {
     transition: all 0.3s ease;
     border-radius: 20px;
     overflow: hidden;
}

.service-card:hover .card {
     box-shadow: 0 20px 40px rgba(0, 71, 140, 0.2) !important;
}

.service-icon {
     font-size: 4rem;
}

.flag-icon {
     font-size: 4rem;
     filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

/* قسم الإحصائيات */
.stats-section {
     background: linear-gradient(135deg, #00478c, #002856);
     position: relative;
     overflow: hidden;
}

.stats-section::before {
     content: '';
     position: absolute;
     width: 200%;
     height: 200%;
     background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 20px, transparent 20px, transparent 40px);
     animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
     0% {
          transform: translate(-50%, -50%) rotate(0deg);
     }

     100% {
          transform: translate(-50%, -50%) rotate(360deg);
     }
}

.stat-item {
     position: relative;
     z-index: 1;
}

/* قسم من نحن */
.icon-box {
     width: 70px;
     height: 70px;
     display: flex;
     align-items: center;
     justify-content: center;
}

/* بطاقات الاتصال */
.contact-card {
     transition: transform 0.3s ease;
     border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* تنسيقات إضافية */
.rounded-pill {
     padding: 10px 30px;
}

.btn {
     transition: all 0.3s ease;
}

.btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* تنسيقات الصفحة الاحترافية */
.services-hero {
     min-height: 60vh;
     background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
     position: relative;
     overflow: hidden;
     padding: 100px 0;
}

.gradient-text {
     background: linear-gradient(135deg, #00478c, #00a8ff);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
}

/* موجات زخرفية */
.wave {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 100px;
     background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
     background-size: cover;
     background-repeat: no-repeat;
}

.wave1 {
     animation: wave 7s linear infinite;
}

.wave2 {
     animation: wave 9s linear infinite;
     opacity: 0.5;
}

.wave3 {
     animation: wave 11s linear infinite;
     opacity: 0.2;
}

@keyframes wave {
     0% {
          transform: translateX(0);
     }

     50% {
          transform: translateX(-25%);
     }

     100% {
          transform: translateX(0);
     }
}

/* بطاقات الدول */
.country-card {
     transition: all 0.3s ease;
     height: 100%;
}

.country-card:hover {
     transform: translateY(-15px);
}

.flag-card {
     border: none;
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
     background: white;
}

.card-flag {
     height: 150px;
     overflow: hidden;
     position: relative;
}

.country-flag {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
}

.country-card:hover .country-flag {
     transform: scale(1.1);
}

.flag-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
}

.feature-badge {
     display: inline-block;
     padding: 5px 15px;
     background: #f8f9fa;
     border-radius: 50px;
     font-size: 12px;
     color: #00478c;
     margin: 3px;
     border: 1px solid #e9ecef;
}

/* تنسيقات الفوتر */
.footer-links a {
     transition: all 0.3s ease;
     display: inline-block;
}

.footer-links a:hover {
     color: #ffd700 !important;
}

[dir="rtl"] .footer-links a:hover {
     transform: translateX(5px);
}

[dir="ltr"] .footer-links a:hover {
     transform: translateX(-5px);
}

.social-icon {
     width: 35px;
     height: 35px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     transition: all 0.3s ease;
     background-color: rgba(255, 255, 255, 0.1);
}



.social-icon:hover {
     background-color: #ffd700 !important;
     color: #00478c !important;
     transform: translateY(-3px);
}

.contact-icon-wrapper {
     width: 45px;
     height: 45px;
     background-color: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     transition: all 0.3s ease;
}

.contact-icon-wrapper:hover {
     background-color: #ffd700;
}

.contact-icon-wrapper:hover i {
     color: #00478c !important;
}

.phone-number, .email {
     color: white;
     font-size: 16px;
     font-weight: 500;
     line-height: 1.4;
     margin-bottom: 2px;
     white-space: nowrap;
}

.country-label {
     color: #e5e5e5;
     font-size: 13px;
     line-height: 1.4;
}

.country-check {
     width: 20px;
     height: 20px;
     font-size: 16px;
     flex-shrink: 0;
}

/* تنسيقات لماذا نحن */
.why-us-card {
     background: #f8f9fa;
     padding: 20px;
     border-radius: 12px;
     transition: all 0.3s ease;
     height: 100%;
     min-height: 120px;
}

.why-us-card:hover {
     background: #ffffff;
     box-shadow: 0 10px 30px rgba(0, 71, 140, 0.1);
     transform: translateY(-5px);
}

.why-us-icon {
     width: 40px;
     height: 40px;
}

.why-us-icon i {
     font-size: 28px;
     width: 28px;
     height: 28px;
     display: flex;
     align-items: center;
     justify-content: center;
}

.why-us-content {
     flex: 1;
     min-width: 0;
}

.why-us-content h5 {
     font-size: 18px;
     margin-bottom: 5px;
     color: #333;
     line-height: 1.4;
}

.why-us-content p {
     font-size: 14px;
     color: #6c757d;
     line-height: 1.5;
}

/* تنسيقات خاصة بالاتجاهات */
[dir="rtl"] .why-us-card {
     text-align: right;
}

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

[dir="rtl"] .why-us-icon {
     margin-left: 15px;
     margin-right: 0;
}

[dir="ltr"] .why-us-icon {
     margin-right: 15px;
     margin-left: 0;
}



/* تنسيقات الدول والاتصال */
[dir="rtl"] .country-check {
     margin-left: 8px;
     margin-right: 0;
}

[dir="ltr"] .country-check {
     margin-right: 8px;
     margin-left: 0;
}

/* تحسينات الجوال */
@media (max-width: 991px) {
     .container_100 {
          max-width: 100% !important;
     }

     .container_100 .navbar-brand {
          margin-left: var(--bs-navbar-brand-margin-end)0rem;
     }

     .navbar-brand img.hei_img {
          height: 40px;
     }

     .navbar .d-flex {
          flex-direction: column !important;
          width: 100%;
          gap: 10px;
     }

     .text-cen {
          text-align: center;
     }

     .navbar .btn {
          width: 100%;
          margin: 0 !important;
     }

     .dropdown-menu {
          box-shadow: none;
          background: #f8f9fa;
     }

     .dropdown-item:hover {
          transform: translateX(0);
     }

     .company-name {
          font-size: 1rem;
          white-space: normal;
     }

     .navbar-nav .nav-link.active::after {
          display: none;
     }

     .d-flex.align-items-center {
          flex-direction: column !important;
          width: 100%;
     }

     .d-flex.align-items-man {
          flex-direction: row !important;
          width: auto;
     }

     .d-flex.align-items-center .btn {
          width: 100%;
          margin: 5px 0 !important;
     }

     .phone-number, .email {
          white-space: normal;
          word-break: break-word;
     }

     .padding_20 {
          padding-top: 20px;
     }

     .hero-slider {
          height: 100vh;
     }
}

/* تحسينات الجوال */

@media (max-width: 768px) {
     .why-us-card {
          padding: 15px;
          min-height: 100px;
     }

     .why-us-icon i {
          font-size: 24px;
          width: 24px;
          height: 24px;
     }

     .why-us-content h5 {
          font-size: 16px;
     }

     .why-us-content p {
          font-size: 13px;
     }

     .hero-slider {
          height: 100vh;
     }

     .hero-slider .display-4 {
          font-size: 2rem;
     }

     .hero-image {
          max-height: 250px;
          margin-top: 30px;
     }

     .stat-item .display-4 {
          font-size: 2.5rem;
     }

     .services-hero h1 {
          font-size: 2rem;
     }

     .features-grid {
          grid-template-columns: 1fr;
     }

     .states-grid {
          grid-template-columns: 1fr;
     }
}

@media (max-width: 576px) {
     .navbar-brand img.hei_img {
          height: 40px;
     }

     .company-name {
          font-size: 0.9rem;
     }
}
@media (max-width: 361px) {
    .navbar-brand .company-name {
       display: none;
    }
}
/* أنيميشن */
@keyframes slideInUp {
     from {
          transform: translateY(50px);
          opacity: 0;
     }

     to {
          transform: translateY(0);
          opacity: 1;
     }
}

.service-detail-block {
     animation: slideInUp 0.6s ease-out;
}