/* Parent white wrapper */
.training-section {
  background: #fff;
  padding: 85px 0;
}

/* Fluid flex container */
.training-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 6rem;      /* optional side-padding */
}

/* make the blocks animate subtly on hover */
.training-block {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1.5rem 2rem rgba(115, 48, 6, 0.1);

}

.training-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.training-block,
.training-block .section-title h2,
.training-block .section-title h2 small,
.training-block p {
  color: #222;
}

.training-block:hover .section-title h2,
.training-block:hover p {
  color: #0b0909;
}


/* Orange cards */
.training-block {
  flex: 1;              /* grow/shrink equally */
  min-width: 450px;     /* never get narrower than this */
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
}

.training-block .learn-more {
  background: #F09319;
  border-radius: 8px;
  margin-top: 30px;
  padding: 15px 0;
  text-align: center;
  border: none;
  cursor: pointer;
  width: 100%;
  display: block;
}
.training-block .learn-more:hover {
  text-decoration: underline;
}
.training-block .learn-more {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
}
.training-block .learn-more a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-block;
}
.training-block .learn-more a:hover {
  text-decoration: underline;
}

/* Stack on smaller viewports */
@media (max-width: 991px) {
  .training-block {
    flex: 1 1 100%;
    min-width: auto;    /* allow full-width on mobile */
    text-align: center;
  }
}

/* Tighten on very small phones */
@media (max-width: 575px) {
  .training-section {
    padding: 50px 0;
  }
  .training-block {
    padding: 25px;
  }
}

/* Section title inside orange block */
.training-block .section-title {
  margin-bottom: 30px;
}

.training-block .section-title h2 {
  font-weight: 200;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #222;
}

.training-block .section-title small {
  font-size: 1rem;
  font-weight: 300;
  display: block;
  margin-top: 5px;
  color: #222;
}

/* Remove default link underlines and colors on all link states */
a.training-block,
a.training-block:link,
a.training-block:visited,
a.training-block:hover,
a.training-block:active {
  text-decoration: none !important;
  color: inherit !important;
}
