@import url("../variables.css");
.partners-section {
  background-color: #e9f3ff;
  font-family: var(--font-family-main);
  padding: 80px 70px;
  position: relative;
  overflow: hidden;
}

/* إعدادات عامة للصور الخلفية */
.bg-shape {
  position: absolute;
  z-index: 0; 
  opacity: 100;  
  pointer-events: none; 
}

/* أماكن وحجوم الصور */
.shape1a_pat { bottom: 20%; left: 88%; width: 100px; }
.shape2a_pat { bottom: 65%; left: 90%; width: 200px; }
.shape1b_pat { top: 75%; left: 12%; width: 100px; }
.shape2b_pat { top: 1%; left: 5%; width: 200px; }

@media (max-width: 600px) {
.shape1a_pat { bottom: 20%; left: 88%; width: 60px; }
.shape2a_pat { bottom: 5%; left: 5%; width: 120px; }
.shape1b_pat { top: 10%; left: 12%; width: 60px; }
.shape2b_pat { top: 5%; left: 75%; width: 120px; }
}

/* الحاوية الرئيسية */
.partners-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* العمود الأول: النصوص */
.partners-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  text-align: left;
}

.partners-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: #1D23D1;
  margin-bottom: 20px;
  z-index: 1;
}

.partners-desc {
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.7;
  z-index: 1;
}

/* الكروت */
.partner-card-col {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px; 
  flex-wrap: wrap;
  z-index: 1;
}

.partner-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 300px;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== Responsiveness ===== */

/* أقل من 1000px */
@media (max-width: 1000px) {
  .partners-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .partners-text-col {
    width: 100%;
    text-align: center;
  }

  .partner-card-col {
    grid-template-columns: 2fr;
    display: grid;
    gap: 20px;
    justify-items: center;
    width: 100%;
    justify-content: center;
  }

  .partner-card {
    width: 200px;
    height: 200px;
    padding: 20px;
  }
}

/* أقل من 600px */
@media (max-width: 600px) {
  .partners-section { padding: 50px 20px; }

  .partner-card {
    width: 160px;
    height: 160px;
    padding: 15px;
  }

}

/* أقل من 500px → الكروت فوق بعض */
@media (max-width: 500px) {
  .partner-card-col {
    grid-template-columns: 1fr; /* كرت واحد في الصف */
  }

  .partner-card {
    width: 100%;
    max-width: 200px;
    height: 150px;
  }

}
