 /* ===================================================================
                CORPORATE TRAINING TIMELINE - SCROLL TRIGGERED ANIMATIONS
                All animations trigger only on scroll, not on page load
                =================================================================== */

.corporate-training-timeline-section {
  padding: 60px 0;
  background: #fcfcfc;
}

.ct-container {
  max-width: 950px;
  margin: 20px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.ct-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #24c6bc, #52c234, #ffc107, #ff6b6b);
}

/* Default hidden state for scroll animations */
.ct-scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Active state when element is in view */
.ct-scroll-animate.ct-active {
  opacity: 1;
  transform: translateY(0);
}

.ct-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #1abc9c, #79c57d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ct-subtitle {
  text-align: center;
  color: #666;
  font-size: clamp(1rem, 2.5vw, 1.17rem);
  line-height: 1.6;
  margin-bottom: 38px;
  padding: 0 16px;
}

.ct-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 46px;
}

.ct-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.ct-features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  color: #333;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ct-features-list li:hover {
  background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ct-icon {
  color: #24c6bc;
  font-size: 1.3em;
  margin-right: 12px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.ct-features-list li:hover .ct-icon {
  transform: scale(1.2) rotate(360deg);
}

/* DESKTOP STEPS SECTION */
.ct-steps-section {
  position: relative;
  width: 100%;
  margin: 52px auto 0 auto;
  min-height: 140px;
}

.ct-creative-line {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
}

.ct-creative-line path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-in-out;
}

/* Animate line when section is active */
.ct-steps-section.ct-active .ct-creative-line path {
  stroke-dashoffset: 0;
}

.ct-steps-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.ct-step-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  opacity: 0;
  transform: translateY(-50px) scale(0.3);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Active state for steps with staggered delay */
.ct-step-vertical.ct-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ct-step-node {
  background: linear-gradient(135deg, #24c6bc, #52c234);
  border: 4px solid #fff;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(36, 198, 188, 0.3);
  width: 60px;
  height: 60px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ct-step-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
}

.ct-step-node:hover::before {
  width: 100px;
  height: 100px;
}

.ct-step-node:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(36, 198, 188, 0.4);
  background: linear-gradient(135deg, #52c234, #24c6bc);
}

.ct-steps-label {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #2d424a;
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ct-step-vertical:hover .ct-steps-label {
  color: #24c6bc;
}

/* MOBILE VERTICAL TIMELINE */
.ct-mobile-timeline {
  display: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .corporate-training-timeline-section {
    padding: 40px 0;
  }
  
  .ct-container {
    margin: 10px auto;
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .ct-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  /* Hide desktop timeline */
  .ct-steps-section {
    display: none;
  }
  
  /* Show mobile timeline */
  .ct-mobile-timeline {
    display: block;
    margin-top: 40px;
    position: relative;
    padding-left: 30px;
  }
  
  /* Vertical line for mobile */
  .ct-mobile-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #24c6bc, #52c234, #ffc107, #ff6b6b, #24c6bc);
    border-radius: 2px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 1s ease, transform 1.5s ease;
  }
  
  /* Animate line when first mobile step is active */
  .ct-mobile-step.ct-active ~ .ct-mobile-timeline::before,
  .ct-mobile-step:first-child.ct-active::before {
    opacity: 1;
    transform: scaleY(1);
  }
  
  .ct-mobile-step {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  /* Active state for mobile steps */
  .ct-mobile-step.ct-active {
    opacity: 1;
    transform: translateX(0);
  }
  
  .ct-mobile-step-node {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #24c6bc, #52c234);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2em;
    box-shadow: 0 5px 20px rgba(36, 198, 188, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    z-index: 2;
  }
  
  .ct-mobile-step-node:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(36, 198, 188, 0.5);
  }
  
  /* Pulse animation only for first active step */
  .ct-mobile-step:first-child.ct-active .ct-mobile-step-node {
    animation: ct-pulse 2s ease-in-out infinite;
  }
  
  @keyframes ct-pulse {
    0%, 100% {
      box-shadow: 0 5px 20px rgba(36, 198, 188, 0.3);
    }
    50% {
      box-shadow: 0 5px 20px rgba(36, 198, 188, 0.6), 0 0 0 10px rgba(36, 198, 188, 0.1);
    }
  }
  
  .ct-mobile-step-content {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #24c6bc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .ct-mobile-step-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .ct-mobile-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d424a;
    margin-bottom: 8px;
    line-height: 1.4;
    margin-top: 0;
  }
  
  .ct-mobile-step-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .ct-container {
    margin: 5px;
    padding: 20px 15px;
  }
  
  .ct-title {
    font-size: 1.6rem;
  }
  
  .ct-subtitle {
    font-size: 1rem;
  }
  
  .ct-mobile-timeline {
    padding-left: 25px;
  }
  
  .ct-mobile-step {
    padding-left: 35px;
    margin-bottom: 35px;
  }
  
  .ct-mobile-step-node {
    left: -32px;
    width: 40px;
    height: 40px;
    font-size: 1.1em;
  }
  
  .ct-mobile-step-content {
    padding: 15px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .corporate-training-timeline-section *,
  .corporate-training-timeline-section *::before,
  .corporate-training-timeline-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.ct-step-node:focus,
.ct-mobile-step-node:focus {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

.ct-features-list li:focus {
  outline: 2px solid #24c6bc;
  outline-offset: 2px;
}

       