/* ─── Beginner Training Section ─────────────────────────────── */

.beginner {
  padding: 2rem 2rem;
  background: #060810;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 40px; /* offsets fixed navbar height */
  min-height: 100vh; /* full viewport coverage */
}

.beginner-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.beginner-subtitle {
  font-size: 1.8rem;
  color: #26C7A0;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 1rem;
}

.beginner-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 1350px;
  width: 100%;
  margin-bottom: 2rem;
  /* gap: 3rem; */
}

.beginner-image {
  flex: 1 1 400px;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
}

.beginner-image img {
  width: 100%;
  height: 49vh;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 !important;
}

.beginner-text {
  flex: 1 1 500px;
  min-width: 300px;
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
  z-index: 2; /* Text stays above the shadow */
}

/* 3. Add a ::before shadow that projects rightwards into the image */
.beginner-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1em;      /* 1em to the right of text edge */
  width: 1.5em;     /* Thin strip for the shadow source */
  height: 100%;
  z-index: 1;       /* Shows beneath text but overlaps image */
  pointer-events: none;

  /* Shadow fades smoothly rightwards—see explanation below */
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.3);
}

.beginner-intro {
  margin-bottom: 1.5rem;
}

.beginner-closing {
  margin-top: 2rem;
}

.b-cta {
  margin-top: 2rem;
}

.btn-beginner {
  background: linear-gradient(90deg, #314ce1);
  color: #FFFFFF;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 2rem;
}

.btn-beginner:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(38, 199, 160, 0.4);
}

/* ─── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 768px) {
  .beginner {
    padding: 3rem 1rem;
  }
  .beginner-title {
    font-size: 2rem;
  }
  .beginner .mentorship-subtitle {
    font-size: 1.25rem;
  }
  .beginner-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .beginner-text,
  .beginner-image {
    width: 100%;
    max-width: none;
  }
  .beginner-text p,
  .beginner-closing {
    font-size: 1.1rem;
  }
  .btn-beginner {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
}
