.real-world-section-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding: 80px 0;
}

.learning-through-text {
  flex: 1;
  width: 50%;
  margin-top: 0;
  align-self: flex-start;
  position: -webkit-sticky;
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
}

.learning-label {
  font-size: 1.8rem;
  color: #ccc;
  font-weight: 400;
  margin-bottom: 5px;
  display: block;
}

.real-world-title {
  font-family: "Switzer", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  display: block;
}

/* Benefits stack — gives GSAP a positional context */
.benefits-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#benefits-section {
  overflow: hidden;
}

/* Project Cards Stack */
.project-cards-stack {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Reduced gap since they will overlap */
  align-items: center;
  padding-bottom: 50px;
}

.project-card {
  width: 470px;
  min-height: 220px;
  padding: 35px;
  border-radius: 25px;
  position: sticky;
  top: 15vh; /* Pinned position from top */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:nth-child(1) {
  transform: rotate(-3deg);
  z-index: 1;
}

.project-card:nth-child(2) {
  transform: rotate(2deg);
  z-index: 2;
  margin-top: -20px; /* Slight overlap start */
}

.project-card:nth-child(3) {
  transform: rotate(-2deg);
  z-index: 3;
  margin-top: -20px;
}

.project-card:hover {
  z-index: 10;
  transform: scale(1.02) rotate(0deg) !important;
}

.project-card.yellow {
  background: #fbbc05;
  color: #333;
}
.project-card.blue {
  background: #4285f4;
  color: #fff;
}
.project-card.green {
  background: #00a449;
  color: #fff;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-card.yellow .card-icon {
  background: rgba(255, 255, 255, 0.4);
  color: #8b5e00;
}
.project-card.blue .card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.project-card.green .card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.project-card h3 {
  font-family: "Switzer", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.project-card.yellow h3 {
  color: #8b0000;
}
.project-card.blue h3 {
  color: #fff;
}
.project-card.green h3 {
  color: #fff;
}
.project-card p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

.verified-badge {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b0000;
  white-space: nowrap;
  align-self: flex-start;
}

/* Tablet */
@media (max-width: 992px) {
  .real-world-section-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 0;
  }
  .learning-through-text {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 180px; /* Fits right under the fixed mobile navbars */
    transform: none;
  }
  .learning-label {
    font-size: 1.2rem;
  }
  .real-world-title {
    font-size: 1.8rem;
  }
  .project-cards-stack {
    width: 100%;
  }
  .project-card {
    width: 90%;
    max-width: 400px;
    padding: 25px;
    min-height: auto;
    top: 290px; /* Leave space for the sticky text above */
  }
  .project-card h3 {
    font-size: 1.5rem;
  }
  .project-card p {
    font-size: 0.9rem;
  }
  .verified-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .real-world-section-content {
    gap: 30px;
    padding: 30px 0;
  }
  .learning-label {
    font-size: 1rem;
  }
  .real-world-title {
    font-size: 1.4rem;
  }

  .project-cards-stack {
    width: 100%;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding-bottom: 0;
  }

  .project-card {
    width: calc(100% - 32px);
    max-width: 340px;
    padding: 20px;
    border-radius: 18px;
    top: 250px; /* Stack directly beneath the sticky text */
  }

  .project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  .project-card p {
    font-size: 0.82rem;
  }
  .verified-badge {
    font-size: 0.62rem;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .project-card-top {
    margin-bottom: 12px;
  }
}

/* ── Learning Benefits Stack Cards ────────────────────────────────────────── */
.benefits-section-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  margin-top: 280px;
}

.benefits-section-text {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  width: 50%;
}

.benefits-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  flex: 1;
}

.benefit-item {
  padding: 25px 20px;
  border-radius: 15px;
  color: #fff;
  font-family: "Switzer", sans-serif;
  letter-spacing: -0.5px;
  box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.2);
}

.benefit-item h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-item p {
  font-size: 1rem;
  margin: 0 42px;
  line-height: 1.5;
  letter-spacing: 0px;
}

.benefit-item.yellow {
  background: #f1ae00;
  color: #7a0021;
  border: 3px solid #f5b817;
}
.benefit-item.blue {
  background: #5c83e3;
  border: 3px solid #779bf2;
}
.benefit-item.green {
  background: #00a449;
  border: 3px solid #1dbe66;
}
.benefit-item.red {
  background: #ec002d;
  border: 3px solid #e91239;
}

@media (max-width: 992px) {
  .benefits-section-content {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .benefits-section-text {
    width: 100%;
  }
  .benefits-stack {
    margin-right: 0;
    max-width: 100%;
    gap: 12px;
  }

  .benefit-item {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    gap: 8px;
  }
  .benefit-item h3 img {
    width: 22px !important;
    height: 16px !important;
  }
  .benefit-item p {
    font-size: 0.85rem;
    margin: 0 0 0 30px;
    line-height: 1.4;
  }
}
