.horizontal-affiliations {
  background: #000;
  padding: 20px 10px;
  text-align: center;
}

.affiliations-title {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.affiliations-title span {
  color: orange;
}

.affiliation-slider img {
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
  transition: 0.3s;
}

.affiliation-slider img:hover {
  transform: scale(1.05);
}

.testimonials-section {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 100px 0;
  overflow-x: hidden;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scroll-padding: 30px;
  -webkit-overflow-scrolling: touch;
}

.testimonial-item {
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  background: rgba(124, 124, 124, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 25px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 420px;
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: scale(1.03);
}

.testimonial-img img {
  border: 4px solid #b01c67;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.testimonial-content {
  margin-top: 15px;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  text-align: center;
}

.testimonial-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.hero-section-custom {
  padding: 125px 20px 40px;
  background: linear-gradient(to bottom right, #0d0d0d, #003049);
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-section-custom h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeDown 0.8s ease-in-out;
}

.course-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.course-card {
  background: white;
  color: #000;
  padding: 18px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 0 calc(20% - 15px);
  max-width: calc(20% - 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 80px;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.course-card:hover {
  transform: scale(1.05);
  background: #ffd60a;
  color: #000;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1024px) {
  .course-card {
    flex: 1 0 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
  }
}

@media screen and (max-width: 768px) {
  .hero-section-custom h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .course-card {
    flex: 1 0 calc(45% - 10px);
    max-width: calc(45% - 10px);
    font-size: 12px;
    padding: 14px;
    min-height: 70px;
    white-space: normal;
    word-wrap: break-word;
  }
}

@media screen and (max-width: 480px) {
  .hero-section-custom h3 {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .course-card {
    flex: 1 0 100%;
    max-width: 100%;
  }
}