/* Partner Universities Section */
.universities-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
  /* Prevent horizontal scrollbar from carousel */
}

.universities-container {
  max-width: 1200px;
  margin: 0 auto;
}

.universities-section .section-heading {
  text-align: center;
  font-size: 2.5rem;
  color: #1C085D;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.universities-section .section-heading i {
  color: #EB001B;
  font-size: 2.2rem;
}

.universities-section .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Logo Carousel Styles */
.logo-carousel-container {
  width: 100%;
  padding: 40px 0;
  margin-bottom: 60px;
  position: relative;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo-carousel-container::before,
.logo-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.logo-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.logo-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.logo-track {
  display: flex;
  width: calc(250px * 12);
  /* 250px per slide * 12 slides (6 original + 6 duplicate) */
  animation: scroll 30s linear infinite;
}

.logo-slide {
  width: 250px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.logo-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 6));
    /* Scroll width of original set */
  }
}

/* Note Styles */
.partners-note {
  margin-top: 40px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #1C085D 0%, #2d1470 100%);
  border-radius: 12px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 15px rgba(28, 8, 93, 0.2);
}

.partners-note p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.partners-note i {
  color: #EB001B;
  font-size: 1.2rem;
}

.partners-note strong {
  color: #EB001B;
}

.partners-note a {
  color: #EB001B;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.partners-note a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .universities-section {
    padding: 60px 15px;
  }

  .universities-section .section-heading {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .universities-section .section-subtitle {
    font-size: 1rem;
  }

  .logo-slide {
    width: 180px;
    padding: 0 20px;
  }

  .logo-track {
    width: calc(180px * 12);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-180px * 6));
    }
  }

  .partners-note p {
    font-size: 0.95rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .universities-section .section-heading {
    font-size: 1.7rem;
  }
}