/* Student Carousel Section Styles */

.student-carousel-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.student-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/shape/shape-3.png') no-repeat center;
  opacity: 0.03;
  pointer-events: none;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-title-wrapper .sub-title {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.section-title-wrapper h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title-wrapper p {
  font-size: 16px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Carousel Container */
.student-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/* Carousel Track */
.student-carousel-track {
  display: flex;
  gap: 30px;
  animation: autoSlide 40s linear infinite;
  width: max-content;
}

.student-carousel-track:hover {
  animation-play-state: paused;
}

/* Keyframes for automatic sliding */
@keyframes autoSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-300px * 17 - 30px * 17));
  }
}

/* Student Card */
.student-card {
  width: 300px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 107, 53, 0.1);
  position: relative;
}

.student-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
}

/* Student Image Container */
.student-image-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.student-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.student-card:hover .student-image-container img {
  transform: scale(1.1);
}

/* Image Overlay */
.student-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.student-card:hover .student-image-overlay {
  opacity: 1;
}

.student-image-overlay .success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.student-image-overlay .success-badge i {
  font-size: 16px;
}

/* Student Info */
.student-info {
  padding: 25px;
  text-align: center;
}

.student-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

.student-card:hover .student-info h3 {
  color: #ff6b35;
}

.student-info .achievement {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 15px;
  font-weight: 500;
}

.student-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
  border-top: 2px solid #f1f5f9;
  gap: 15px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item .stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 5px;
}

.stat-item .stat-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Success Icon Badge */
.success-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Carousel Controls (Optional - for manual control) */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.carousel-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: #ffffff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.carousel-control-btn:active {
  transform: translateY(-1px);
}

/* Pause/Play Button */
.carousel-play-pause {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ff6b35;
  border-radius: 50%;
  color: #ff6b35;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-play-pause:hover {
  background: #ff6b35;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media only screen and (max-width: 1400px) {
  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 17 - 25px * 17));
    }
  }

  .student-card {
    width: 280px;
  }

  .student-carousel-track {
    gap: 25px;
  }

  .student-image-container {
    height: 330px;
  }
}

@media only screen and (max-width: 991px) {
  .student-carousel-section {
    padding: 80px 0;
  }

  .section-title-wrapper h2 {
    font-size: 36px;
  }

  .section-title-wrapper {
    margin-bottom: 50px;
  }

  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-260px * 17 - 20px * 17));
    }
  }

  .student-card {
    width: 260px;
  }

  .student-carousel-track {
    gap: 20px;
  }

  .student-image-container {
    height: 310px;
  }

  .carousel-play-pause {
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .student-carousel-section {
    padding: 60px 0;
  }

  .section-title-wrapper h2 {
    font-size: 30px;
  }

  .section-title-wrapper .sub-title {
    font-size: 14px;
  }

  .section-title-wrapper p {
    font-size: 15px;
  }

  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-240px * 17 - 15px * 17));
    }
  }

  .student-card {
    width: 240px;
  }

  .student-carousel-track {
    gap: 15px;
  }

  .student-image-container {
    height: 290px;
  }

  .student-info {
    padding: 20px;
  }

  .student-info h3 {
    font-size: 18px;
  }

  .stat-item .stat-value {
    font-size: 18px;
  }
}

@media only screen and (max-width: 480px) {
  .student-carousel-container {
    padding: 0 10px;
  }

  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-220px * 17 - 12px * 17));
    }
  }

  .student-card {
    width: 220px;
  }

  .student-carousel-track {
    gap: 12px;
  }

  .student-image-container {
    height: 270px;
  }

  .section-title-wrapper h2 {
    font-size: 26px;
  }

  .carousel-play-pause {
    width: 40px;
    height: 40px;
    font-size: 14px;
    right: 10px;
  }

  .success-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Smooth appearance animation */
.student-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
