#training {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 0;
    width: 100%;
    background-image: linear-gradient(to top, white, rgb(245, 245, 245));
}

#training h2 {
    margin-top: 0;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 28px);
    margin-bottom: 0;
    padding: 30px;
    color: rgb(68, 58, 44);
    font-family: "Fredoka", sans-serif;
}

#trainingWrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    justify-items: center;
}

@media (max-width: 1800px) {
    #trainingWrapper {
        grid-template-columns: repeat(2, 1fr);
     }
}

@media (max-width: 1300px) {
    #trainingWrapper {
        grid-template-columns: repeat(1, 1fr);
     }
}

.training-card {
    width: 500px;
    height: 250px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-image: linear-gradient(to right, white, rgb(255, 221, 177));
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.training-card.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1300px) {
      .training-card {
        width: 100%;
        height: auto;
        flex-wrap: wrap;
     }
}

.training-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.training-card h3 {
    font-weight: 400;
    font-size: clamp(26px, 3vw, 28px);
    color: rgb(159, 0, 0);
    font-family: "Rubik Marker Hatch", sans-serif;
}

.training-card p, .training-card span {
    font-family: "Assistant", sans-serif;
    font-weight: 500;
    color: rgb(68, 58, 44);
    font-size: clamp(18px, 3vw, 20px);
}

.training-card span {
    font-weight: 600;
}

#ctaB {
    display: block;
    text-align: center;
    border: none;
    border-radius: 50px;
    padding: 20px 80px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    cursor: pointer;
    color: rgb(159, 0, 0);
    margin-top: 30px;
    width: 30%;
    background: none;
    border: 1px solid rgb(159, 0, 0);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

#ctaB:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: scale(1.07) translateY(-2px);
}

@media (max-width: 768px) {
      #ctaB {
        padding: 20px 20px;
        width: 70%;
     }
}