/* ===== LEARNER PROFILE SECTION (Updated) ===== */

.lp-section {
  background:;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.lp-heading {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Merienda', serif;
  color:black;
}

.lp-description {
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 16px;
  line-height: 1.6;
  color:black;
}

/* GRID LAYOUT */
.lp-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  max-width: 1150px;
  margin: auto;
}
/* Center last item when it doesn't fill the row */
.lp-wrapper > .lp-box:last-child {
  grid-column: 2 / span 1;
}
/* CARD HEIGHT & WIDTH FIXED FOR LOOK */
.lp-box {
  background: #114d37;
  border-radius: 6px;
  padding: 40px 30px 50px;
  color: #fff;
  height:500px; /* ⬆️ Increased height */
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.lp-box:hover {
  transform: translateY(-6px);
}

/* DOUBLE CIRCLE PHOTO */
.lp-photo {
  width: 210px;
  height: 210px;
  background:#fff;
  border-radius: 50%;
  position: relative;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SECOND (INNER) CIRCLE */
.lp-photo::before {
  content: '';
  width: 130px;
  height: 130px;
  background:#d6c9b2;
  border-radius: 50%;
  position: absolute;
  z-index: 1;
}

.lp-photo img {
  width: 130px;
  height: auto;
  position: relative;
  z-index: 2;
}

/* TEXT FIX */
.lp-text {
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  max-width: 250px; /* ⬇️ Narrow width like screenshot */
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .lp-wrapper > .lp-box:last-child {
    grid-column: auto;
  }
}
/* Tablet (2 per row) */
@media (max-width: 1024px) {
  .lp-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-box {
    height: auto;
  }
}

/* Mobile (1 per row) */
/* ===== MOBILE VIEW: STACK ONE BY ONE ===== */
/* Mobile view */
@media (max-width: 768px) {

  /* Force 1 column layout */
  .lp-wrapper {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 25px;
    place-items: center;   /* 💚 Fixed: centers the IP boxes */
  }

  /* Remove center rule for last element */
  .lp-wrapper > .lp-box:last-child {
    grid-column: auto;
  }

  /* Optional: Adjust size for mobile balance */
  .lp-photo {
    width: 160px;
    height: 160px;
  }

  .lp-photo::before {
    width: 130px;
    height: 130px;
  }

  /* Reduce padding for mobile */
  .lp-box {
    padding: 40px 20px;
    height: auto;
  }

  /* Make text full width and centered */
  .lp-text {
    max-width: 100%;
    text-align: center;
  }
}

