/* ===== SECTION ===== */
.training-section {
  padding: 60px 20px;
  overflow: hidden;
}

/* ===== HEADER ===== */
.training-header {
  text-align: center;
  margin-bottom: 40px;
}

.training-header h1 {
  color: var(--text-black);
  font-weight: 700;
  margin-bottom: 10px;
}

.training-header p {
  color: #555;
  line-height: 1.6;
}

/* ===== TOP CONTENT ===== */
.training-top {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

/* ===== IMAGE ===== */
.training-image {
  flex: 0 0 320px;
  width: 100%;
}

.training-image img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== TEXT ===== */
.training-text {
  flex: 1;
}

.training-text p {
  color: var(--text-black);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ===== CARDS ===== */
.training-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== CARD ===== */
.training-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-top: 4px solid var(--accent-red);
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.training-card h4 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.training-card p {
  line-height: 1.7;
  color: #444;
}

/* ===== TABLET ===== */
@media (max-width: 992px) {

  .training-top {
    gap: 25px;
  }

  .training-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  body{
    overflow-x: hidden;
  }

  .training-section {
    padding: 40px 12px;
  }

  .training-header h1 {
    font-size: 30px;
  }

  .training-header p {
    font-size: 15px;
  }

  .training-top {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .training-image {
    flex: unset;
    width: 100%;
  }

  .training-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .training-text p {
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
  }

  .training-cards {
    grid-template-columns: 1fr;
  }

  .training-card {
    padding: 18px;
  }

  .training-card h4 {
    font-size: 18px;
  }

  .training-card p {
    font-size: 14px;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px){

  .training-header h1{
    font-size: 26px;
  }

  .training-header p{
    font-size: 14px;
  }

  .training-card{
    padding: 16px;
  }
}