@charset "UTF-8";
/* ==========================================================================
   Partners (شركاء)
   ========================================================================== */

.partners {
  margin-top: var(--section-gap);
  min-height: 561px;
  padding: 40px 0 42px;
  overflow: hidden;
  background: var(--c-white);
}

.partners__title {
  min-height: 51px;
}

/* Tabs (991:11405): active = filled #80D6F6 (200px), inactive = outline (150px) */
.partners__tabs {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.tab {
  padding: 10px;
  border: 1px solid var(--c-supportive);
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-size: var(--fs-sub2);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-primary);
  white-space: nowrap;
  transition: background 0.25s ease, width 0.25s ease;
}
.tab--global {
  width: auto; /* «الشراكات والتعاون الدولي» (Figma: 200px for the shorter «الشراكات العالمية») */
  min-width: 200px;
  padding-inline: 24px;
}
.tab--clients {
  width: 150px;
}
.tab.is-active {
  background: var(--c-supportive);
}
.tab:not(.is-active):hover {
  background: rgba(128, 214, 246, 0.18);
}

.partners__rows {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* as wide as the screen, so each row is centred on it */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.partners.is-visible .partners__rows {
  opacity: 1;
  transform: none;
}

/* All tab/page layers share one grid cell and cross-dissolve (prototype: "Dissolve") */
.partners__layer {
  grid-area: 1/1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}
.partners__layer.is-shown {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s;
}

/* Each row: 4 whole logo cards, centred (2 per row on small screens) */
.partners__viewport {
  direction: ltr;
  display: flex;
  justify-content: center;
  padding: 2px 24px 6px;
}

.partners__track {
  --card: 260px;
  --gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, var(--card)));
  gap: var(--gap);
  width: 100%;
  justify-content: center;
}

.logo-card {
  min-width: 0;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  filter: drop-shadow(0 4px 2px rgba(130, 126, 125, 0.12));
}
.logo-card img {
  max-width: 85%; /* a wide logo shrinks to fit a narrow card */
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo-card:hover img {
  transform: scale(1.06);
}

.partners__pagination {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 12px;
}


@media (max-width: 1100px) {
  .partners__track {
    --gap: 24px;
  }
}
@media (max-width: 760px) {
  .partners__track {
    grid-template-columns: repeat(2, minmax(0, var(--card)));
    gap: 16px;
  }
  .partners__layer {
    gap: 16px;
  }
}
@media (max-width: 576px) {
  .partners__tabs {
    gap: 12px;
    padding-inline: 24px;
  }
  .tab {
    width: auto !important;
    min-width: 0;
    padding-inline: 16px;
    font-size: 16px;
    white-space: normal; /* long names wrap onto two lines instead of running off the screen */
  }
}

.partners__pagination .dot[hidden] {
  display: none;
}
