.Achievements-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background-color: var(--lightHelper);
    background-image: url("../img/contact.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin: 60px auto;
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
  
.rts-counter-list {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}
  
.rts-counter-list:hover {
    transform: translateY(-5px);
}
  
.rts-counter-list .rts-counter-list-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
  
.counter-icon {
    background-color: var(--primaryColor);
    margin-right: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.rts-counter-list .rts-counter-list-inner .counter-icon img {
    width: 60px;
    height: 60px;
    padding: 15px;
    border-radius: 50%;
}
  
.count-number span {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0px 5px;
}
  
.rts-counter-list .text {
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 10px;
    font-size: 16px;
}
  
@media (max-width: 992px) {
    .count-number span {
      font-size: 35px;
    }
    .rts-counter-list {
      padding: 15px;
    }
}
  
@media (max-width: 576px) {
    .Achievements-section {
      padding: 40px 15px;
      gap: 20px;
    }
    .rts-counter-list {
      padding: 10px;
    }
    .count-number span {
      font-size: 28px;
    }
    .rts-counter-list .text {
      font-size: 14px;
    }
}

/* أضف هذا في ملف may_Achievements.css */
.Achievements-section {
  background: linear-gradient(rgba(23, 77, 118, 0.9), rgba(23, 77, 118, 0.9)), url('../img/pattern.png');
  /* يمكنك إضافة صورة باترن خفيفة كخلفية */
  color: #fff;
  border-radius: 15px;
  padding: 60px 20px;
}

.rts-counter-list-inner {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 50%;
  border: 2px dashed var(--secondaryColor); /* إطار متقطع يعطي طابع البناء */
  transition: all 0.5s ease;
}

.rts-counter-list:hover .rts-counter-list-inner {
  background: var(--secondaryColor);
  border-color: #fff;
  transform: rotate(360deg); /* حركة دائرية ناعمة للأيقونة */
}

/* ================= BEFORE & AFTER STYLES ================= */
.before-after-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f4f6f8 0%, #ffffff 100%);
}

.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9; /* يحافظ على نسبة الصورة في جميع الشاشات */
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(23, 77, 118, 0.15);
  border: 4px solid var(--primaryColor, #174D76);
}

.ba-img-background,
.ba-img-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* يمنع تمطط الصور */
  pointer-events: none; /* لتمرير النقرات إلى شريط التمرير */
}

.ba-img-foreground {
  /* تعرض نصف الصورة الأيسر كبداية */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
}

.ba-slider {
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  top: 0;
  left: 0;
  z-index: 5;
  cursor: ew-resize; /* علامة السحب للماوس */
}

/* إخفاء زر التمرير الافتراضي في المتصفحات */
.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
}
.ba-slider::-moz-range-thumb {
  width: 40px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
  border: none;
}

/* الخط الفاصل */
.ba-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 4px;
  background: var(--secondaryColor, #F39C12);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* زر السحب الدائري */
.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primaryColor, #174D76);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border: 3px solid var(--secondaryColor, #F39C12);
  transition: transform 0.1s ease;
}

.ba-slider:active ~ .ba-slider-button {
  transform: translate(-50%, -50%) scale(1.1); /* يكبر الزر قليلاً عند الضغط */
}

/* تسميات قبل وبعد */
.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 8px 24px;
  background: rgba(23, 77, 118, 0.85); /* لون أساسي شفاف قليلاً */
  color: #fff;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.label-before {
  left: 20px;
  border-bottom: 3px solid var(--secondaryColor, #F39C12);
}

.label-after {
  right: 20px;
  border-bottom: 3px solid #25D366; /* لون أخضر دلالة على الإنجاز */
}