    .feedback-home {
      /* background: linear-gradient(to bottom right, #f6fff8, #eafbea); */
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 60px 20px;
    }

   .feedback-home h2 {
      text-align: center;
      font-size: 38px;
      font-weight: 700;
    }

    .feedback-subtext {
      margin-bottom: 45px;
      text-align: center;
      font-size: 16px;
      max-width: 750px;
      line-height: 1.6;
    }


   .feedback-home .feedback-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
      width: 100%;
      max-width: 1300px;
    }

    .feedback-card {
      position: relative;
      background: #ffffff;
      border-radius: 16px;
      padding: 45px 28px 28px;
      box-shadow: 0 8px 20px rgba(0, 128, 0, 0.08);
      transition: transform 0.28s ease, box-shadow 0.28s ease;
      overflow: visible;
      height: 280px;
      display: flex;
      flex-direction: column;
    }

    .feedback-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 16px 36px rgba(0, 128, 0, 0.18);
    }

    .profile-icon {
      padding:15px;
      position: absolute;
      top: -30px;
      right: 18px;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: linear-gradient(180deg, #0a6e2a, #0d8b3a);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 4px solid #fff;
      box-shadow: 0 6px 20px rgba(0, 128, 0, 0.25);
      transition: transform 0.35s ease;
      z-index: 3;
      flex-shrink: 0;
    }

    .feedback-card:hover .profile-icon {
      transform: rotate(5deg) scale(1.08);
    }

    .course-pill {
      display: inline-block;
      padding: 6px 14px;
      border-radius: 99px;
      background: rgba(10, 110, 42, 0.1);
      color: #0a6e2a;
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* NEW: wrapper that becomes the single scrollable region */
    .feedback-scroll {
      /* fill remaining card space */
      flex: 1 1 auto;
      overflow-y: auto;
      padding-right: 6px; /* room for scrollbar */
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .feedback-text {
      color: #333;
      line-height: 1.6;
      font-size: 15px;
      /* remove card-specific max-height; scrolling is handled by .feedback-scroll */
      margin-bottom: 0;
    }

    /* custom scrollbar for the scroll wrapper */
    .feedback-scroll::-webkit-scrollbar {
      width: 8px;
    }
    .feedback-scroll::-webkit-scrollbar-thumb {
      background: rgba(10, 110, 42, 0.28);
      border-radius: 10px;
    }
    .feedback-scroll::-webkit-scrollbar-track {
      background: rgba(10, 110, 42, 0.03);
    }

    .feedback-name {
      font-weight: 600;
      color: #0a6e2a;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .affiliation {
      font-size: 13px;
      color: #2f6f3a;
      font-weight: 500;
    }

    .role-pill {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(15, 120, 40, 0.06);
      color: #0a6e2a;
      font-weight: 600;
      font-size: 12px;
      text-transform: capitalize;
      margin-left: 8px;
    }

    .stars {
      color: gold;
      letter-spacing: 2px;
      font-weight: 700;
      margin-top: 5px;
    }

    /* ensure the bottom area (name+affiliation+stars) doesn't get cut; allow wrapping inside scroll */
    .feedback-meta {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-bottom: 4px;
    }

   @media (max-width: 768px) {
  .feedback-card {
    padding: 35px 20px 25px;
    height: 260px;
  }

  .profile-icon {
    width: 62px;
    height: 62px;
    top: -26px;
    right: 16px;
  }
}

/* EXTRA SMALL DEVICES (<480px) */
@media (max-width: 480px) {
    .feedback-home .feedback-container{
      grid-template-columns: 1fr;
     }
  .feedback-card {
    height: 300px;
  }

  .feedback-text {
    font-size: 14px;
  }
}