/* Additional fixes for alumni section */

/* Fix for alumni slider overflow */
.alumni-slider {
  overflow: visible !important; /* Ensures navigation buttons can appear outside the slider container */
  position: relative;
}

/* Fix for navigation buttons */
.alumni-section .owl-nav button {
  width: 40px;
  height: 40px;
  background: #fff !important;
  border: 1px solid rgba(0, 46, 94, 0.1) !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  /* Fix for navigation buttons overlapping the slider */
  margin-left: -20px;
  margin-right: -20px;
}

.alumni-section .owl-nav button:hover {
  background: linear-gradient(135deg, #ffaa17, #ff7e00) !important;
  transform: translateY(-50%) scale(1.08);
}

.alumni-section .owl-prev {
  left: -15px;
}

.alumni-section .owl-next {
  right: -15px;
}

.alumni-section .owl-nav i {
  font-size: 16px;
  color: #002e5e;
  transition: color 0.3s ease;
}

.alumni-section .owl-nav button:hover i {
  color: #fff;
}

/* Enhanced alumni items */
.alumni-item {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  margin: 15px 15px; /* Increased horizontal margin to prevent overlap with navigation buttons */
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  will-change: transform, box-shadow;
}

.alumni-item::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 46, 94, 0.02) 0%, rgba(0, 46, 94, 0) 70%);
  border-radius: 50%;
  top: -40px;
  right: -40px;
  z-index: 0;
  transition: all 0.5s ease;
}

.alumni-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 170, 23, 0.2);
  border-top: 3px solid #ffaa17;
}

.alumni-item:hover::before {
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(255, 170, 23, 0.03) 0%, rgba(255, 170, 23, 0) 70%);
}

.alumni-item img {
  max-width: 85%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  will-change: filter, opacity, transform;
  position: relative;
  z-index: 1;
}

.alumni-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive fixes */
@media(max-width: 767px) {
  .alumni-slider {
  padding: 0 40px !important;
  margin-top: 10px;
  overflow: visible !important; /* Ensures navigation buttons can appear outside the slider container */
}
  
  .alumni-item {
    /* Make card height adapt to its content while maintaining a reasonable minimum */
    height: auto;
    min-height: 70px;
    padding: 10px;
    margin: 8px 4px;
  }
  
  .alumni-item img {
    max-height: 60px;
    max-width: 100%;
  }
  
  .alumni-section .owl-nav button {
    width: 35px;
    height: 35px;
  }
  
  /* Adjust button positions for mobile */
  .alumni-section .owl-prev {
    left: -10px;
  }
  
  .alumni-section .owl-next {
    right: -10px;
  }
}

@media(max-width: 480px) {
  .alumni-item {
    height: auto;
    min-height: 60px;
    padding: 8px;
    margin: 6px 3px;
  }
  
  .alumni-item img {
    max-height: 50px;
    max-width: 100%;
  }
  
  .alumni-slider {
    padding: 0 30px !important;
  }
  
  .alumni-section .owl-nav button {
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .alumni-section .owl-nav i {
    font-size: 14px;
  }
  
  /* Further adjust button positions for smaller screens */
  .alumni-section .owl-prev {
    left: -5px;
  }
  
  .alumni-section .owl-next {
    right: -5px;
  }
}
