
.training-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.training-wrapper .gallery {
  flex: 1 1 400px;
  max-width: 400px;
}

.training-wrapper .training-section {
  flex: 1 1 500px;
}

/* Optional: Make heading aligned left instead of center */
.training-section h2.heading-style {
  text-align: left;
}
/* Responsive */
@media (max-width: 768px) {
  .training-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .training-section {
    text-align: center;
  }

  .training-section h2.heading-style {
    text-align: center;
  }
}
.training-title {
    font-size: 28px;
    font-weight: bold;
    color: #3652A5;
    margin-bottom: 15px;
}

.training-description {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.training-btn {
    display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #3652A5, #25347B);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border: 2px solid white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.training-btn:hover {
    background: linear-gradient(45deg, #25347B, #4c589d);
    color: white;
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.gallery div {
  position: relative;
  overflow: visible;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: all 0.4s ease;
  display: block;
  border-radius: 6px;
  z-index: 1;
}

/* Default hover: center pop-up */
.gallery div:hover img {
  position: absolute;
  width: 300px;
  height: 200px;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  object-fit: cover;
}

/* Left column images (1st, 3rd, etc) — translate right/up */
.gallery div:nth-child(odd):hover img {
  transform: translate(0%, -20%) scale(1.05);
}

/* Right column images (2nd, 4th, etc) — translate left/up */
.gallery div:nth-child(even):hover img {
  transform: translate(-50%, -20%) scale(1.05);
}
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
