#training {
  padding: 40px 20px;
}

#training h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 50px;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.2s;
}

#training h2 span {
  color: var(--secondary-color);
}

.training-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  height: auto;
  border: 2px solid var(--secondary-color);
  padding: 40px 20px;
  border-radius: 40px 60px;
  background: var(--ten-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color),
    0 0 15px var(--secondary-color);
  animation: slideLeft 0.5s ease forwards;
  animation-fill-mode: both;
}

.training-container:hover {
  background: var(--secondary-color);
  transform: translateY(-8px);
  box-shadow: 0 0 10px var(--secondary-color), 0 0 15px var(--secondary-color), 0 0 20px var(--secondary-color);
}

@keyframes slideLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.img-training img {
  width: 100%;
  height: auto;
  border-radius: 40px 10px;
}

.training-text {
  display: flex;
  flex-direction: column;
}

.training-text h3 {
  margin-bottom: 16px;
  font-size: 30px;
  text-align: center;
}

.training-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  padding-bottom: 15px;
}

@media screen and (max-width: 1024px) {
  #training h2 {
    font-size: 48px;
  }

  .training-container {
    gap: 30px;
  }

  .training-text h3 {
    font-size: 26px;
  }

  .training-text p {
    font-size: 15.5px;
  }
}


@media screen and (max-width: 768px) {
  #training {
    padding: 30px 15px;
  }

  #training h2 {
    font-size: 36px;
  }

  .training-container {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 30px;
  }

  .img-training img {
    border-radius: 30px 10px;
  }

  .training-text h3 {
    font-size: 24px;
  }

  .training-text p {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  #training {
    padding: 20px 10px;
  }

  #training h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .training-container {
    padding: 15px;
    gap: 20px;
    border-radius: 20px;
  }

  .img-training img {
    border-radius: 20px 10px;
  }

  .training-text h3 {
    font-size: 20px;
  }

  .training-text p {
    font-size: 14px;
    text-align: left;
  }
}