/* training.css */

/* ============================================
   Training Item Section
   ============================================ */

.training-list {
  padding: 0 23px 0 0
}

.training-item {
  background-color: var(--color-white);
  color: var(--color-text);
  border-radius: 8px;
  overflow: visible;
  margin-bottom: 93px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.training-item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-teal);
  right: -23px;
  bottom: -23px;
  z-index: -1;
  border-radius: 8px;
}

.training-item:nth-child(even) {
  flex-direction: row-reverse;
}

.training-item:last-child {
  margin-bottom: 0;
}

.training-item__image-wrapper {
  overflow: hidden;
  flex: 0 0 47%;
  border-radius: 8px 0 0 8px;
  height: 294px;
}

.training-item:nth-child(even) .training-item__image-wrapper {
  border-radius: 0 8px 8px 0;
}

.training-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-item__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  background: var(--color-white);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}

.training-item:nth-child(even) .training-item__content {
  border-radius: 8px 0 0 8px;
}

.training-item__title {
  font-size: var(--font-size-service-item-title);
  font-weight: bold;
  text-align: center;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.training-item__description {
  color: var(--color-text);
  font-size: var(--font-size-service-item-description);
  line-height: 1.6;
}

.sec-cta {
  margin: 5.5rem 0 2rem;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1100px) {
  .section-training .section-inner {
    padding: 0 6.4vw 0;
  }

  .training-item__image-wrapper {
    height: auto;
  }

  .training-item__content {
    padding: 1.5rem;
  }

  .training-item__title {
    font-size: var(--font-size-responsive-1100-service-item-title);
  }

  .training-item__description {
    font-size: var(--font-size-responsive-1100-service-item-desc);
  }

  .sec-cta {
    margin: 4.5rem 0 2rem;
  }
}

@media (max-width: 768px) {
  .section-training .section-inner {
    padding: 0 30px;
  }
  
  .training-item {
    margin-bottom: 73px;
  }

  .training-item__image-wrapper {
    height: auto;
  }

  .training-item__content {
    padding: 1.5rem;
  }

  .sec-cta {
    margin: 4rem 0 2rem;
  }

}

@media (max-width: 480px) {
  .section-training .section-inner {
    padding: 0 8px;
  }
  
  .training-list {
    padding: 0 10px 0 0;
  }
  
  .training-item {
    margin-bottom: 35px;
  }

  .training-item::before {
    right: -10px;
    bottom: -10px;
  }

  .training-item__image-wrapper {
    flex: 0 0 34%;
  }

  .training-item__content {
    padding: 0.5rem;
  }

  .training-item__title {
    margin-bottom: 0.5rem;
  }

  .sec-cta {
    margin: 1rem 0 2rem;
  }

  .sec-cta__link {
    padding: 2rem 0 0;
  }
}
