.referanslar {
  max-width: 1300px;
  margin: 48px auto 36px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 38px;
  position: relative;
  padding-left: 25px;
  color: #1f3b82;
  letter-spacing: 0.5px;
}
.section-title span {
  position: absolute;
  width: 4px;
  height: 100%;
  background-color: #f7ce00;
  left: 0;
  top: 0;
  border-radius: 2px;
}

/* 6'lı grid yapısı */
.referans-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6'lı grid */
  gap: 32px 22px;
  justify-items: center;
  align-items: stretch;
}

/* Her kart eşit boy, dikdörtgen ve ortalı */
.referans-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(30,49,115,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 155px;
  width: 100%;
  min-width: 0;
  padding: 14px 6px 8px 6px;
  transition: box-shadow .18s, transform .17s;
  border: 1.3px solid #f4f6fc;
  cursor: pointer;
}

.referans-card:hover {
  box-shadow: 0 8px 24px rgba(255, 224, 0, 0.15), 0 2px 18px rgba(23,50,109,0.07);
  transform: translateY(-3px) scale(1.035);
  border-color: #ffe000;
}

/* Logo container ve image tam ortalı, aynı alanı kaplar */
.logo-container {
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 9px;
  background: #f9f9fb;
  border-radius: 12px;
  padding: 5px 0;
}

.logo-container img {
  max-height: 52px;      /* Hepsi aynı yükseklikte olacak */
  max-width: 90%;
  width: auto;
  object-fit: contain;
  transition: transform .23s, filter .23s;
  filter: grayscale(0.11) brightness(1.08);
  display: block;
}
.referans-card:hover .logo-container img {
  transform: scale(1.13);
  filter: grayscale(0) brightness(1.11);
}

/* İsim kısmı */
.referans-isim {
  font-size: 15px;
  font-weight: 700;
  color: #203067;
  text-align: center;
  margin-top: 9px;
  line-height: 1.15;
  min-height: 30px;
  max-width: 95%;
  white-space: normal;
}

/* Responsive ayarlar */
@media (max-width: 1100px) {
  .referans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 800px) {
  .referans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
  }
  .referans-card {
    height: 120px;
    padding: 9px 4px 6px 4px;
  }
  .logo-container { height: 45px; }
  .logo-container img { max-height: 35px; }
}
@media (max-width: 500px) {
  .referans-grid {
    grid-template-columns: 1fr;
  }
  .referans-card {
    height: 104px; /* Kartı büyütelim */
    padding: 12px 8px 12px 8px;
  }
  .logo-container {
    height: 62px;  /* Logo alanı büyüdü */
    padding: 0;
  }
  .logo-container img {
    max-height: 65px;  /* LOGOLAR DAHA BÜYÜK! */
    max-width: 80%;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
  }
}

