/* Project: دار رعايتي (Medical Home Care)
   Theme: Professional, Modern, Healthcare
   Layout: Right-to-Left (RTL)
*/

:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --dark: #0f172a;
  --light: #f8fafc;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --primary-color: #2563eb; /* لون التحميل */
}

/* 1. General Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  cursor:auto !important;
}
a {
  text-decoration: none;
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap; 
}



body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
  overflow: hidden;
}

/* 2. Custom Cursor */
/*.cursor-dot {*/
/*  width: 8px;*/
/*  height: 8px;*/
/*  background: var(--primary);*/
/*  position: fixed;*/
/*  z-index: 1000000000000001;*/
/*  border-radius: 50%;*/
/*  pointer-events: none;*/
/*}*/

/*.cursor-outline {*/
/*  width: 40px;*/
/*  height: 40px;*/
/*  border: 2px solid var(--primary);*/
/*  position: fixed;*/
/*  z-index: 1000000000000001;*/
/*  border-radius: 50%;*/
/*  pointer-events: none;*/
/*}*/

/* --- Modern Wavy Preloader --- */
/* #preloader {
  position: fixed;
  inset: 0;
  background: #0f172a; 
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
} */

/* .loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
} */

/* تنسيق اسم البراند */
/* .brand-name {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  gap: 12px;
}

.brand-name .highlight {
  color: #2563eb; 
  position: relative;
} */

/* تأثير الـ Wave الخاص بك مع تعديلات للياقة */
/* .wave-loader {
  height: 20px;
  aspect-ratio: 6;
  --c: #0000 64%, #2563eb 66% 98%, #0000 101%; 
  background: radial-gradient(35% 146% at 50% 159%, var(--c)) 0 0,
    radial-gradient(35% 146% at 50% -59%, var(--c)) 25% 100%;
  background-size: calc(100% / 3) 50%;
  background-repeat: repeat-x;
  clip-path: inset(0 100% 0 0);
  animation: wave-draw 1.5s infinite linear;
} */

/* @keyframes wave-draw {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  50% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
} */

/* تأثير ظهور النص من العدم */
.brand-name span {
  display: inline-block;
  animation: fade-up 1s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.brand-name span:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* كلاس الإخفاء عند انتهاء التحميل */
/* .preloader-hide {
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease-in-out;
} */

/* 4. Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
}

.top-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.3s;
}

.top-info a:hover {
  color: var(--light);
}

.top-info i {
  color: var(--light);
  margin-left: 5px;
}

.top-social {
  display: flex;
  gap: 15px;
}

.top-social a {
  color: #fff;
  opacity: 0.7;
  transition: 0.3s;
}

.top-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* 5. Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 80px;
}

.logo {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 900;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  transition: var(--transition);
  cursor:pointer;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* 6. Hero Section & Swiper (Right Aligned Content) */
.hero-section {
  height: 85vh;
  position: relative;
}

.mainSwiper {
  height: 100%;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* transform: scaleX(-1); */
  z-index: -1;
}

/* تدرج لوني يغمق جهة اليمين ليظهر النص بوضوح */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  z-index: 1; /* فوق الصورة */
}

.swiper-slide .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative; /* ضروري لعمل الـ z-index */
  z-index: 10; /* قيمة عالية لضمان ظهور النص فوق الـ overlay والصورة */
}

.hero-content {
  color: #ffffff !important; /* ضمان اللون الأبيض */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* إضافة ظل خفيف للنص لزيادة الوضوح */
  max-width: 650px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
  display: flex;
  cursor: pointer;
  gap: 15px;
}

.btn-main {
  background: var(--primary);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

/* 7. Services Section */
.main-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-info {
  padding: 30px;
}

.s-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); /* خلفية داكنة فخمة */
    position: relative;
    overflow: hidden;
}

/* إضافة أشكال هندسية في الخلفية */
.stats-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    top: -50px;
    right: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.stat-box {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

/* تغليف الأيقونة */
.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.stat-content .num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-content p {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

/* شكل جمالي داخل البوكس */
.stat-shape {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    transition: 0.5s;
}

.stat-box:hover .stat-shape {
    transform: scale(2);
    opacity: 0.2;
}

@media (max-width: 768px) {
    .stat-box {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }
}

.testimonials-section {
    background: #fdfdfd;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

/* الكارت الإحصائي الجانبي */
.stat-main-card {
    background: var(--primary);
    padding: 50px;
    border-radius: 40px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item .num {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
}

.stat-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
}

/* كروت الآراء */
.testimonial-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.testi-card {
  position: relative;
    background: #fff;
    padding: 35px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    /* border: 1px solid rgba(0,0,0,0.02); */
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    border-top: 5px solid var(--primary);
}
.testi-card::before{
  content: "";
position: absolute;
    width: 500px;
    height: 500px;
    background-color: var(--primary);
    border-radius: 50%;
    left: -130px;
    opacity: .01;
    top: 100px;
    transform: translate(-174px, 0px);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% {
        transform: translate(-174px, 0px);
    }
    50% {
        transform: translate(-174px, -120px);
    }
}

.testi-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.testi-quote {
    color: var(--primary);
    opacity: 0.1;
    font-size: 2rem;
    margin-bottom: 15px;
}

.testi-text {
    color: #475569;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 3px;
}

.stars {
    color: #ffb800;
    font-size: 0.8rem;
}

/* للموبايل */
@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-cards-wrapper { grid-template-columns: 1fr; }
}
/* تنسيق الجريد الكلي */
.testimonials-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: stretch;
}

/* الكارت الجانبي الأزرق */
.stat-main-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 40px;
    border-radius: 35px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.stat-header .num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.stat-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 25px 0;
}

.coverage-box {
    margin-bottom: 30px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 12px;
}

.trust-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-badge-mini {
    font-size: 0.8rem;
    background: rgba(16, 185, 129, 0.2);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* شبكة التقييمات */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* الكارت الثالث يأخذ مساحة عرض كاملة ليصبح الشكل Bento Grid */
.reviews-grid .testi-card:nth-child(3) {
    grid-column: span 2;
}

.testi-card {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    /* border: 1px solid rgba(0,0,0,0.05); */
    transition: 0.3s;
}

.testi-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

/* للموبايل والتابلت */
@media (max-width: 1100px) {
    .testimonials-grid-layout { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .reviews-grid .testi-card:nth-child(3) { grid-column: span 1; }
}

/* 9. Booking Form */
.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
}

.contact-item a {
  background: var(--light);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #0f172a;
  cursor: pointer;
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  right: 15px;
  top: 18px;
  color: var(--primary);
  opacity: 0.6;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 15px 45px 15px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--light);
  outline: none;
  transition: 0.3s;
  direction: rtl;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

/* 10. Modern Footer */
.modern-footer {
  background: var(--dark);
  color: #f8fafc;
  position: relative;
  padding-top: 100px;
  margin-top: 100px;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(360deg);
}

.footer-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  fill: var(--light);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.logo-white {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-white img {
  width: 80px;
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 15px;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}
.footer-col a:hover {
  color: #fff;
  padding-right: 8px;
}

.social-pills {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-pills a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  transition: 0.4s;
}

.social-pills a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.contact-pill {
  background: rgba(37, 99, 235, 0.1);
  padding: 20px;
  border-radius: 20px;
  border-right: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-pill i {
  font-size: 1.5rem;
  color: var(--primary);
}

.footer-copyright {
  text-align: center;
  padding: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
}
.footer-copyright a{
  color: #ffff;
  cursor: pointer;
}

/* 11. Floating Buttons */
.floating-contact {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-contact a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.whatsapp-btn {
  background: #25d366;
}
.phone-btn {
  background: var(--primary);
}

/* 12. Responsive */
@media (max-width: 992px) {
  .booking-container {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .top-bar,
  .main-nav {
    display: none;
  }
  .hero-section {
    height: 75vh;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
  cursor: pointer;

  }
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /*.cursor-dot,*/
  /*.cursor-outline {*/
  /*  display: none;*/
  /*}*/
  * {
    cursor: auto;
  }
}

/* تنسيق الأيقونات داخل القائمة */
.main-nav li a i {
  margin-left: 5px;
  font-size: 0.9rem;
  transition: var(--transition);
}

/* حالة الرابط النشط */
.main-nav li a.nav-link.active {
  color: var(--primary);
  position: relative;
}

.main-nav li a.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* تحسين شكل الزر عند التمرير */
.nav-btn.active {
  background: var(--secondary) !important;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 15px;
  } /* تقليل المسافات للشاشات المتوسطة */
  .main-nav a {
    font-size: 0.9rem;
  }
}

/* إخفاء قائمة الموبايل في الشاشات الكبيرة */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  /* إخفاء أيقونة الـ Bar التقليدية إذا أردت */
  .bar {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 20px 20px 0 0;
    padding: 0 10px;
  }

  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    width: 60px;
    height: 50px;
    border-radius: 15px;
    transition: all 0.3s ease;
    gap: 4px;
    cursor: pointer;
  }

  .mobile-nav-link i {
    font-size: 1.2rem;
  }

  .mobile-nav-link span {
    font-size: 0.65rem;
    font-weight: 700;
  }

  /* تأثير الـ Active الاحترافي (خلفية رمادية) */
  .mobile-nav-link.active {
    background-color: #f1f5f9; /* لون رصاصي فاتح جداً */
    color: var(--primary);
    transform: translateY(-5px);
  }

  /* تأمين مساحة في أسفل الصفحة حتى لا يغطي الشريط المحتوى */
  body {
    padding-bottom: 80px;
  }

  /* إخفاء أزرار الاتصال العائمة التقليدية لمنع التداخل أو تغيير مكانها */
  .floating-contact {
    bottom: 90px; /* رفعها فوق شريط التنقل الجديد */
  }
}


/* تنسيق الحاوية الأساسية */
.swiper-pagination-bullets {
    bottom: 20px !important;
}

/* التنسيق الافتراضي للنقطة */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc; /* لون النقط غير النشطة */
    opacity: 0.6;
    transition: all 0.4s ease-in-out; /* حركة ناعمة */
    border-radius: 5px;
}

/* تنسيق النقطة النشطة */
.swiper-pagination-bullet-active {
    width: 35px; /* تتمدد لتصبح مستطيلة */
    background: var(--light); /* لون الهوية الخاص بك */
    opacity: 1;
    border-radius: 10px;
}

/* --- تصميم البوكس الاحترافي --- */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

/* البادج العلوي */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* تنسيق الصورة */
.card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
}

.rating-stars {
    color: #ffb800;
    font-size: 0.85rem;
    font-weight: 600;
}

/* محتوى الكارد */
.card-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.s-icon-bg {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.brand-mini-tag {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-info p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* زرار التفاصيل الاحترافي */
.card-footer {
    margin-top: auto;
}

.btn-details {
    width: 100%;
    background: var(--primary);
    border: none;
    padding: 14px 25px;
    border-radius: 18px;
    color: var(--light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details i {
    transition: transform 0.3s ease;
}

.btn-details:hover {
    background: var(--light);
    color: var(--primary);
}
.title-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-details:hover i {
    transform: translateX(-5px); /* يتحرك لليسار لأننا RTL */
}

/* --- تنسيق المودال (Modal) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7); /* خلفية داكنة شفافة */
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: none; /* مخفي افتراضياً */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    position: relative;
    padding: 40px;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px; /* يسار لأن الموقع RTL */
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}



/* --- تصميم عنوان السيكشن العالمي --- */
.section-header {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    padding-top: 0px;
}

/* النص الخلفي الضخم */
.bg-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.03); /* لون خفيف جداً من البراند */
    z-index: -1;
    user-select: none;
    white-space: nowrap;
}

/* تغليف العنوان الرئيسي */
.main-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.section-main-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    position: relative;
    margin: 0;
}

.section-main-title .highlight {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* الخطوط الجانبية مع أنميشن تمدد */
.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    animation: lineMove 2s infinite linear;
}

@keyframes lineMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* الوصف السفلي */
.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* أيقونة النبض مع أنميشن Beats */
.medical-pulse {
    font-size: 1.5rem;
    color: var(--secondary);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .section-main-title { font-size: 2rem; }
    .bg-text { font-size: 4rem; top: 20px; }
    .title-line { width: 30px; }
}




#Articles {
    position: relative;
    background-color: #eee;
    z-index: 1;
}

#Articles::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 50%; /* مكان السماعة جهة اليسار قليلاً */
    width: 700px;
    height: 700px;
    background-image: url('https://i.pinimg.com/1200x/2d/06/db/2d06db0a96a539950834bc0315761339.jpg'); /* صورة سماعة PNG */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07; /* زدنا الوضوح هنا */
    /* filter: grayscale(100%) brightness(1.2); */
    /* z-index: 1; */
    transform: rotate(0) translate(-50%,-50%); 
    pointer-events: none;
}



.mission-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mission-item {
    background: #fff;
    border-radius: 35px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
}

.mission-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 25px;
}

.mission-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mission-item:hover .mission-img-wrapper img {
    transform: scale(1.1);
}

/* البادج الصغير فوق الصورة */
.img-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mission-text {
    padding: 0 15px 15px 15px;
}

.mission-text p {
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
}

/* قائمة القيم المطورة */
.values-list-v2 {
    list-style: none;
    padding: 0;
}

.values-list-v2 li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.values-list-v2 li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.mission-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
        width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.mission-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mission-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.mission-btn:hover i {
    transform: translateX(-5px); /* حركة السهم عند الهوفر */
}

/* تعديل بسيط لضمان المسافات */
.mission-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ليكون الزرار على اليمين بما أن الموقع عربي */
}



.about-section {
    background: #fff;
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* تنسيق النقاط */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.f-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: 0.3s;
}

.feature-item:hover .f-icon {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.f-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.f-text p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* تصميم جزء الصورة */
.image-stack {
    position: relative;
    padding: 20px;
}

.main-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--secondary);
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.exp-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    font-weight: 800;
    color: var(--primary);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* موبايل */
@media (max-width: 992px) {
    .about-wrapper { grid-template-columns: 1fr; }
    .features-list { grid-template-columns: 1fr; }
    .about-image-side { order: -1; } /* الصورة تطلع فوق في الموبايل */
    .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
}

.author-avatar{
      background-color: var(--primary);
    color: var(--light);
    width: 50px;
    border-radius: 50%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 23px;

}


.features-section {
    background: #fdfdfd;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* تأثير عند الهوفر */
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.f-card-icon {
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ختم "مع رعايتي" */
.trust-stamp {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px dashed var(--primary);
}

.feature-card:hover .trust-stamp {
    background: var(--primary);
    color: #fff;
    border-style: solid;
}




#care,#features{
  background-color: #ffff;
}



/* --- أزرار الاتصال الذكية --- */
.floating-wrapper {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-toggle-btn .fa-times {
    display: none;
}

/* حالة الفتح */
.floating-wrapper.active .main-toggle-btn {
    background: #ef4444; /* يتغير للأحمر عند الغلق */
    transform: rotate(90deg);
}

.floating-wrapper.active .fa-comment-dots { display: none; }
/*.floating-wrapper.active .fab{display:none !important;}*/
.floating-wrapper.active .fa-times { display: block; }

.contact-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.floating-wrapper.active .contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.menu-item.whatsapp { background: #25D366; }
.menu-item.phone { background: #3b82f6; }

.menu-item:hover { transform: scale(1.1); }

.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 160px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    background-color: var(--primary); 
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    /* ظل خفيف للزر ليبرز عن الصفحة */
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* لون السهم (Light) */
.progress-wrap i {
    position: absolute;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #ffffff; /* لون فاتح صريح */
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    z-index: 1;
}

/* لون دائرة التحميل (Light) */
.progress-wrap svg path { 
    fill: none; 
    stroke: rgba(255, 255, 255, 1); /* اللون الأبيض للتحميل */
    stroke-width: 10; /* زيادة السمك قليلاً لتكون واضحة */
    box-sizing: border-box;
    transition: all 10ms linear;
}

/* دائرة خلفية خفيفة جداً لبيان مسار التحميل */
.progress-circle {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 50%;
}



.contract-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* خلفية داكنة فخمة */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* إضافة أشكال هندسية في الخلفية لزيادة الشياكة */
.contract-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
}

.banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.badge-new {
    background: var(--secondary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.highlight-alt {
    color: var(--secondary);
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* الأزرار داخل البانر */
.banner-btns {
    display: flex;
    gap: 20px;
}

.btn-contract-main {
    background: var(--primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-contract-sub {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-contract-main:hover { background: #1d4ed8; transform: translateY(-3px); }
.btn-contract-sub:hover { background: rgba(255, 255, 255, 0.2); }

/* الشكل الجمالي للـ PDF */
.pdf-icon-box {
    width: 150px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--secondary);
    position: relative;
}

.pdf-label {
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    font-weight: 900;
    background: #ef4444;
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
}

/* التجاوب مع الموبايل */
@media (max-width: 992px) {
    .banner-wrapper { flex-direction: column; text-align: center; }
    .banner-btns { flex-direction: column; }
    .banner-desc { margin-left: auto; margin-right: auto; }
}




