/* ===============================
   General
   =============================== */
body {
  color: #11184A;
  background-color: #fff;
  text-align: center;
  font-family: "Dm Sans", sans-serif;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
}

h2 {
  margin: 0;
}

/* ===============================
   Carousel Section
   =============================== */
.carousel-section {
  padding: 50px 40px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left;
}

.carousel-title {
  flex: 1;
  font-size: 2.8rem;
  color: #11184A;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  max-width: 500px;
  margin-left: 70px;
}

.carousel-title.active {
  opacity: 1;
}

.carousel-wrapper {
  flex: 2;
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel ul {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.8s ease-in-out;
}

.carousel li {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.6;
  max-width: 75%;
  padding: 20px 25px;
  backdrop-filter: blur(3px);
}

.nav-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.nav-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #f9e684;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-dot:hover {
  background: #f7b531;
}

.nav-dot.active {
  background: #f7b531;
}

/* ===============================
   Training Section
   =============================== */
.training-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.training-title {
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #11184A;
}

.training-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.training-card {
  background-color: #f6f6f6;
  border-radius: 12px;
  padding: 90px 40px;
  width: 500px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.training-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #11184A;
  text-align: center;
}

.training-card p {
  font-size: 1.3rem;
  color: #11184A;
  margin: 40px;
  text-align: center;
}

.training-card:hover {
  background-color: #FBE971;
  animation: jumpStay 0.8s forwards;
}

@keyframes jumpStay {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(-20px); }
}

.training-card .btn {
  position: relative;
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #11184A;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #11184A;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card .btn::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: #11184A;
  z-index: 0;
  transition: height 0.5s ease;
}

.training-card .btn span {
  position: relative;
  z-index: 1;
  transition: color 0.5s ease;
}

.training-card:hover .btn::before {
  height: 100%;
}

.training-card:hover .btn span {
  color: #fff;
}

.training-card:hover .btn {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* ===============================
   Provider Section
   =============================== */
.provider-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.provider-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #11184A;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.provider-logo {
  flex: 0 1 calc(25% - 30px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #11184A;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  max-height: 300px;
}

.provider-logo img {
  max-width: 100%;
  object-fit: contain;
}

.provider-logo:hover {
  transform: translateY(-5px);
  box-shadow: 20px 20px 20px #fce570;
}

/* ===============================
   Collaborations Section
   =============================== */
.collab-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.collab-title {
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #11184A;
}

.collab-carousel-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.collab-carousel ul {
  display: flex;
  align-items: center;
  gap: 60px;
  list-style: none;
  padding: 20px 0;
  margin: 0;
  animation: scrollInfinite 30s linear infinite;
}

.collab-carousel li {
  flex: 0 0 auto;
}

.collab-carousel img {
  max-height: 100px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===============================
   Be Our Speaker Section
   =============================== */
.speaker-section {
  background-color: #fff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.speaker-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  width: 100%;
  gap: 60px;
}

.speaker-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
}

.speaker-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Slide from left animation */
.slide-left-on-scroll {
  transform: translateX(-100px);
  opacity: 1; /* no fade */
  transition: transform 0.8s ease-out;
}

.slide-left-on-scroll.in-view {
  transform: translateX(0);
}


/* Title & text styling */
.speaker-title {
  font-size: 2.8rem;
  color: #11184A;
  line-height: 1.2;
  margin: 0;
}

.speaker-text {
  font-size: 1.2rem;
  color: #11184A;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* Button styling */
.speaker-btn {
  background-color: #11184A;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.speaker-btn:hover {
  background-color: #f7b531;
  color: #11184A;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .speaker-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .speaker-left,
  .speaker-right {
    align-items: center;
  }

  .speaker-title { font-size: 2rem; }
  .speaker-text { font-size: 1rem; }
}


/* ===============================
   Testimonials Section
   =============================== */
.testimonial-section {
  padding: 90px 20px;
  background-color: #fff;
  text-align: center;
}

.testimonial-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #11184A;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-cards-wrapper {
  overflow: hidden;
  width: 100%;
  border: 2px solid #11184A;
  border-radius: 20px;
}

.testimonial-cards {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 60px 40px;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #11184A;
  text-align: center;
  background-color: #fff;
  border-radius: 20px;
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card p {
  max-width: 300px;
  font-size: 1.2rem;
  color: #11184A;
}

.testimonial-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #11184A;
  margin: 20px;
}

/* Navigation Buttons */
.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  border: 2px solid #11184A;
  color: #11184A;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-prev { left: 10px; }
.testimonial-next { right: 10px; }

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: #e6c200;
  transform: translateY(-50%) scale(1.1);
}

/* ===============================
   Scroll Animations
   =============================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Responsive adjustments
   =============================== */
@media (max-width: 900px) {
  .carousel-section {
    flex-direction: column;
    text-align: center;
  }

  .carousel-title {
    max-width: 100%;
    text-align: center;
    font-size: 30px;
  }

  .carousel-wrapper {
    max-width: 100%;
    height: 300px;
  }

  .caption {
    font-size: 14px;
    padding: 10px 14px;
    max-width: 90%;
    text-align: center;
  }

  .training-cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .training-card {
    width: 100%;
    max-width: 400px;
    padding: 60px 30px;
  }

  .speaker-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 25px;
  }

  .speaker-left {
    align-items: center;
  }

  .speaker-title { font-size: 2rem; }
  .speaker-text { font-size: 1rem; }
  .speaker-btn { align-self: center; }
}
