/* ==========================================================================
   Trainings
   ========================================================================== */

/* ===== Hero Section (Boxed, shorter height) ===== */
.train-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1e293b, #334155);
  padding: 40px 20px 60px; /* allow overlap */
}

.train-hero-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 40px 30px;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.train-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0;
  color: #f9fafb;
}

.train-hero-sub {
  font-size: 1.1rem;
  margin-top: 12px;
  color: #e2e8f0;
}

/* Animated dots */
.train-dots::after {
  content: "";
  display: inline-block;
  animation: trainDots 1.5s steps(3, end) infinite;
  width: 2ch;
  text-align: left;
}
@keyframes trainDots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* ===== Countdown Section (Floating + Neon Border) ===== */
.train-countdown {
  background: linear-gradient(180deg, #334155, #1e293b);
  padding: 0 20px 60px; /* no top padding, overlap below hero */
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.train-count-box {
  background: #1e293b;
  border-radius: 28px;
  padding: 40px 30px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin-top: -50px; /* overlap into hero */
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Neon glow border animation */
.train-count-box::before,
.train-cta-box::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 30px;
  background: linear-gradient(90deg, #2563eb, #9333ea, #2563eb);
  background-size: 300% 300%;
  animation: trainGlow 6s linear infinite;
  z-index: -1;
  filter: blur(8px);
}
@keyframes trainGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.train-count-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.train-timebox {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.train-timebox:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.train-timebox span {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  display: block;
}

.train-timebox small {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Highlighted Note */
.train-note {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  padding: 10px 18px;
  border-radius: 999px; /* pill shape */
  display: inline-block;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.6);
  animation: pulseNote 2s infinite;
}
@keyframes pulseNote {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.8);
  }
}

/* ===== CTA Section (Boxed + Overlap + Neon Border) ===== */
.train-cta {
  background: linear-gradient(180deg, #1e293b, #334155);
  padding: 0 20px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.train-cta-box {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 28px;
  padding: 50px 30px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  margin-top: -40px; /* overlap into countdown */
  color: #ffffff;
  position: relative;
}

.train-cta-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.train-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.train-form input {
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  width: 260px;
  outline: none;
}

.train-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #fbbf24;
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}
.train-form button:hover {
  background: #d97706;
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.7);
}

