section#references {
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  color: #333;
  padding: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
}

section#references .swiper {
  width: 100%;
  height: auto;
}

section#references .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

section#references .top .text {
  text-align: center;
  flex-grow: 1;
}

section#references .top .text #title {
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
}

section#references .top .text #content {
  font-size: 0.9rem;
  color: #666;
}

/* Butonlar */
section#references .top .toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

section#references .top .toggle:hover {
  background: #eee;
}

section#references button.toggle:disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

section#references button.toggle:disabled:hover {
  background-color: inherit;
  color: inherit;
  box-shadow: none;
}

/* Swiper container */
section#references .referanceSwiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Slide wrapper */
section#references .swiper-wrapper {
  display: flex;
  align-items: center;
}
*, *::before, *::after {
  box-sizing: border-box;
}
/* Slide */
section#references .swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 0.5rem;
}

/* Company item */
section#references .company-item {
  width: 100%;
  height: 150px;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

section#references .company-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transition: opacity 0.5s ease;
  filter: none !important;
  border-radius: .5rem;
}

/* MEDYA SORGULARI */
@media screen and (max-width: 1312px) and (min-width: 912px) {
  section#references {
    max-width: 90%;
  }
  section#references .swiper-slide {
    width: calc((100% - 60px) / 4);
  }
}

@media screen and (min-width: 1312px) {
  section#references {
    max-width: 60%;
  }
  section#references .swiper-slide {
    width: calc(100% / 5 - 20px) !important;
  }
}

@media screen and (max-width: 912px) and (min-width: 768px) {
  section#references {
    max-width: 90%;
  }
  
  section#references .swiper-slide {
    width: calc((100% - 40px) / 3) !important;
  }
}

@media screen and (min-width: 1312px) {
  section#references {
    max-width: 60%;
  }
  section#references .swiper-slide {
    width: calc(100% / 5 - 20px) !important;
  }
}

@media screen and (max-width: 768px) and (min-width:576px) {
  section#references {
    padding: 0;
  }

  section#references .swiper-slide {
    width: calc((100% - 20px) / 2);
  }

  section#references .top {
    padding: 0 1em;
  }
}

@media screen and (max-width: 576px) {
  section#references .swiper-slide {
    width: 100% !important; 
  }

  section#references .company-item {
    padding: 0 5% ;
    width: 100%;
  }

  section#references {
    padding: 0;
  }

  section#references .top {
    padding: 0 1em;
  }
}
