body{
  font-family:  'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  background: #0a1a33;
  background-image: url("../img/back-other.jpeg"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* ===== Background wrapper (image + overlay for title + cards) ===== */
.partners-bg{
  position: relative;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* overlay على كامل الصورة (العنوان + الكروت) */
.partners-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25); /* 0.15 - 0.35 */
  pointer-events: none;
  z-index: 0;
}

/* نخلي المحتوى فوق overlay */
.partners-head,
.partners-page{
  position: relative;
  z-index: 1;
}

/* container (بدون ما نعتمد على all_companies.css) */
.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== Title ===== */
.partners-head{
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  padding-top: 70px;   
  font-weight: 800;
  margin: 0;
  color: #212e46;
}

.partner-title{
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);  
  font-weight: 800;
  margin: 0;
  color: #444a55;
}

/* ===== Grid ===== */
.partners-page{
  padding-top: 6px;     /* يخلي الكروت تبدأ من فوق أكثر */
}

.partners-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* ===== Card ===== */
.partner-card{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;

  height: 86px;              /* نفس المقاس للجميع */
  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}

/* الصورة (حل اختلاف الأحجام) */
.partner-card img{
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  display: block;

  transition: transform .25s ease;
}

/* Hover effect */
.partner-card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  border-color: rgba(255,255,255,.55);
}

.partner-card:hover img{
  transform: scale(1.06);
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .partners-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .partners-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .partners-head{ padding-top: 85px; }
  .partners-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card{ height: 84px; }
  .partner-card img{ max-height: 58px; }
}

/* ===== Footer not affected ===== */
#siteFooter, footer{
  position: relative;
  z-index: 5;
  background: #02173f;
  margin-top: 0;
}