.ff-student-rhythm-section {
  width: 100%;
  padding: 80px 24px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.ff-student-rhythm-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.ff-student-rhythm-head {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.ff-student-rhythm-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ff-student-rhythm-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ff-student-rhythm-head p {
  margin: 0 auto;
  max-width: 650px;
  font-size: 15.5px;
  line-height: 1.75;
}

/* World-class timeline styling */
.ff-student-rhythm-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #D9D1C2;
  border-bottom: 1px solid #D9D1C2;
  position: relative;
  margin-bottom: 30px;
}

.ff-student-rhythm-line article {
  position: relative;
  padding: 40px 30px;
  border-right: 1px solid #D9D1C2;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
  z-index: 1;
}

.ff-student-rhythm-line article:last-child {
  border-right: 0;
}

/* Timeline pointer nodes */
.ff-student-rhythm-line article::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 30px;
  width: 11px;
  height: 11px;
  background: #80A37F;
  border: 2px solid #FAFAF8;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s ease;
}

/* Card hover background reveal effect */
.ff-student-rhythm-line article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.ff-student-rhythm-line article:hover::after {
  opacity: 1;
}

.ff-student-rhythm-line article:hover {
  transform: translateY(-8px);
}

.ff-student-rhythm-line article:hover::before {
  transform: scale(1.4);
  background: #D09F6C;
}

.ff-student-rhythm-line span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ff-student-rhythm-line h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}

.ff-student-rhythm-line p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.ff-student-rhythm-story {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: center;
  border-left: 2px solid #D09F6C;
  padding: 10px 40px;
}

.ff-student-rhythm-story p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
}

.ff-student-rhythm-story p:last-child {
  margin-bottom: 0;
}

@media(max-width: 980px) {
  .ff-student-rhythm-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .ff-student-rhythm-line article {
    border-bottom: 1px solid #D9D1C2;
  }

  .ff-student-rhythm-line article:nth-child(2) {
    border-right: 0;
  }

  .ff-student-rhythm-line article:nth-child(3),
  .ff-student-rhythm-line article:nth-child(4) {
    border-bottom: 0;
  }
}

@media(max-width: 767px) {
  .ff-student-rhythm-section {
    padding: 50px 16px;
  }

  .ff-student-rhythm-head {
    margin-bottom: 35px;
  }

  .ff-student-rhythm-line {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .ff-student-rhythm-line article {
    border-right: 0 !important;
    border-bottom: 1px solid #D9D1C2 !important;
    padding: 30px 16px;
  }

  .ff-student-rhythm-line article:last-child {
    border-bottom: 0 !important;
  }

  .ff-student-rhythm-line article::before {
    left: 16px;
  }

  .ff-student-rhythm-story {
    padding: 10px 20px;
    text-align: left;
  }
}
