:root{
  --gap: 12px;
  --card-radius: 8px;
  --icon-size: 56px;
  --top-height: 56px;
}

.step-section {
  padding: 22px;
  min-height: 450px;  /* remove min-height if already set */
    max-height: 600px;  /* prevent taller slides from expanding it */
}

.step-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
}

.step-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  min-height: 220px;
  position: relative;
  transition: transform .12s ease;
}
.step-card:active { transform: scale(.995);
 }

/* ACTIVE STATE COLORS */
.step-1.active .step-bottom,
.step-1.active .icon-circle {
  background: #6c3f3f !important; /* brighter pinkish tone */
}

.step-2.active .step-bottom,
.step-2.active .icon-circle {
  background: #6c3f3f !important; /* light rose tone */
}

.step-3.active .step-bottom,
.step-3.active .icon-circle {
  background: #6c3f3f !important;
}

.step-4.active .step-bottom,
.step-4.active .icon-circle {
  background: #6c3f3f !important;
}

.step-5.active .step-bottom,
.step-5.active .icon-circle {
  background: #6c3f3f !important;
}

.step-6.active .step-bottom,
.step-6.active .icon-circle {
  background: #6c3f3f !important;
}

/* Common active effects */
.step-card.active {
  transform: scale(1.04);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  z-index: 5;
}

.step-card.active .icon-circle {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.step-top {
  background: #fff;
  height: var(--top-height);
  position: relative;
}


.icon-circle {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.icon-circle .bi {
  color: #fff;
  font-size: 22px;
}

.step-bottom {
  padding: 36px 14px 18px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  min-height: 150px;
}

.step-number {
  font-weight: 700;
  font-size: 16px;
}

.step-text {
  font-size: 15px;
  line-height: 1.25;
}

.instruction {
  margin-top: 8px;
  display: none;
  background: rgba(255,255,255,0.12);
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: #fff;
}
.step-card.active .instruction {
  display: block;
}

/* Colors per step */
.step-1 .step-bottom, .step-1 .icon-circle { background: #7b4157; }
.step-2 .step-bottom, .step-2 .icon-circle { background: #7b4157; }
.step-3 .step-bottom, .step-3 .icon-circle { background: #7b4157; }
.step-4 .step-bottom, .step-4 .icon-circle { background: #7b4157; }
.step-5 .step-bottom, .step-5 .icon-circle { background: #7b4157; }
.step-6 .step-bottom, .step-6 .icon-circle { background: #7b4157; }

/* Responsive tweaks */
@media (max-width: 700px) {
  :root {
    --icon-size: 52px;
    --top-height: 52px;
  }
  .step-bottom {
    padding: 28px 12px 14px;
    min-height: 140px;
  }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.step-section {
  padding: 22px;
  margin-bottom:300px;
}
}
@media (max-width: 420px) {
  :root {
    --icon-size: 48px;
    --top-height: 48px;
  }
  .step-section {
  padding: 22px;
  margin-bottom:300px;
}
 .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-bottom {
    padding: 22px 10px 12px;
    min-height: 120px;
  }
}



    .course-section {
      display: flex;
      align-items: flex-start;
      padding: 60px 40px;
      background: linear-gradient(135deg, #7b4157 0%, #f3e4e2 100%);
      color: white;
      gap: 60px;
      flex-wrap: wrap;
    }

    .left-text {
      flex: 1;
      max-width: 450px;
      font-size: 1.1rem;
      line-height: 1.5;
      opacity: 0.85;
      min-height: 140px; /* reserve space for dynamic text */
      position: relative;
      user-select: none;
    }

    .left-text h2 {
      font-size: 3rem;
      margin-bottom: 20px;
      font-weight: 700;
      line-height: 1.1;
      user-select: text;
      opacity: 1;
    }

    .formats {
      flex: 1.5;
      display: flex;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
    }

    .format-item {
      flex: 1;
      min-width: 180px;
      text-align: center;
      cursor: pointer;
      outline: none;
    }

    .format-item img {
      width: 100%;
      max-width: 180px;
      border-radius: 12px;
      box-shadow: 0 8px 15px rgba(0,0,0,0.2);
      margin-bottom: 15px;
      object-fit: cover;
      height: 120px;
      transition: transform 0.3s ease;
    }

    .format-item p {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0;
      color: #7b4157;
      user-select: none;
    }

    /* Highlight active format */
    .format-item.active img {
      transform: scale(1.05);
      box-shadow: 0 12px 24px rgba(0,0,0,0.35);
      border: 2px solid #fff;
      border-radius: 14px;
    }

    @media (max-width: 768px) {
      .course-section {
        flex-direction: column;
        padding: 40px 20px;
      }
      .formats {
        justify-content: center;
        gap: 30px;
      }
      .format-item {
        min-width: 220px;
      }
      .left-text {
        min-height: auto;
        margin-bottom: 40px;
      }
    }

    :root {
      --mauve: #b8749d;
      --maroon: #7b4157;
      --dusty-rose: #e9bde8;
      --ivory: #f9f1f0;
      --text-dark: #3a2f35;
      --card-bg: var(--ivory);
      --card-shadow: rgba(123, 65, 87, 0.3);
    }

    body {
      background: var(--ivory);
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      color: var(--text-dark);
    }

    .who-should-enroll-modern {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      background: var(--ivory);
      color: var(--maroon);
      padding: 80px 40px;
      gap: 60px;
      min-height: 400px;
    }

    .content {
      flex: 1 1 400px;
      max-width: 480px;
      text-align: left;
    }

    .content h2 {
      font-size: 3rem;
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 20px;
      background: linear-gradient(90deg, var(--mauve), var(--maroon));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      position: relative;
    }

    .content h2::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -12px;
      width: 120px;
      height: 6px;
      background: linear-gradient(90deg, var(--mauve), var(--maroon));
      border-radius: 4px;
      filter: drop-shadow(0 0 6px var(--mauve));
    }

    .content p {
      font-size: 1.25rem;
      line-height: 1.6;
      color: var(--maroon);
      margin-top: 10px;
    }

    .cardss-wrapper {
      flex: 1 1 520px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 40px;
      perspective: 1000px;
    }

    .cards {
      position: relative;
      background: var(--card-bg);
      border-radius: 20px;
      padding: 35px 30px;
      box-shadow: 0 8px 25px var(--card-shadow);
      color: var(--maroon);
      cursor: pointer;
      transform-style: preserve-3d;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      outline-offset: 6px;
      user-select: none;
      min-height: 220px;
      overflow: hidden;
    }

    .cards-bg {
      position: absolute;
      top: -30%;
      left: -30%;
      width: 160%;
      height: 160%;
      background: radial-gradient(circle at top left, var(--mauve) 40%, transparent 70%), radial-gradient(circle at bottom right, var(--dusty-rose) 40%, transparent 70%);
      border-radius: 30px;
      filter: blur(60px);
      opacity: 0.3;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: 0;
    }

    .cards:hover .cards-bg,
    .cards:focus .cards-bg {
      opacity: 0.5;
    }

    .cards:hover,
    .cards:focus {
      box-shadow: 0 20px 40px rgba(183, 116, 157, 0.6), 0 20px 60px rgba(233, 189, 232, 0.4);
      transform: translateY(-12px) rotateX(8deg) rotateY(8deg);
      outline: none;
      z-index: 10;
    }

    .cards h3 {
      font-size: 1.8rem;
      margin-bottom: 18px;
      font-weight: 700;
      color: var(--maroon);
      position: relative;
      z-index: 1;
    }

    .cards p {
      font-size: 1rem;
      line-height: 1.5;
      color: var(--maroon);
      position: relative;
      z-index: 1;
      user-select: text;
    }

    /* Accessibility focus */
    .cards:focus-visible {
      outline: 3px solid var(--mauve);
      outline-offset: 6px;
    }

    @media (max-width: 900px) {
      .who-should-enroll-modern {
        padding: 60px 20px;
      }
      .content {
        max-width: 100%;
      }
      .cardss-wrapper {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 540px) {
      .cardss-wrapper {
        grid-template-columns: 1fr;
      }
      .who-should-enroll-modern {
        padding: 40px 20px;
      }
      .content h2 {
        font-size: 2.6rem;
      }
      .content p {
        font-size: 1.1rem;
      }
      .cards h3 {
        font-size: 1.5rem;
      }
    }



.why-choose-us-modern {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}



.points-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.point {
  flex: 1 1 30%;
  ...
}



.point:hover {
  transform: translateY(-15px);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  overflow: visible;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.point:hover .image-wrapper img {
  transform: scale(1.05);
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 1;
}

.shape-1 {
  width: 140px;
  height: 140px;
  background: #7b4157;
  top: -40px;
  left: -40px;
}

.shape-2 {
  width: 160px;
  height: 160px;
  background: #7b4157;
  bottom: -50px;
  right: -50px;
}

.shape-3 {
  width: 140px;
  height: 140px;
  background: #ff416c;
  top: -30px;
  right: -30px;
}

.point h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #7b4157;
}

.point p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .points-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
  .point {
    flex: none;
  }
  .point h3, 
  .point p {
  text-align: Center;
 
}
}

