/* Details within the original Home sections. */
.home-page .home-eyebrow {
  margin: 0 0 6px;
  padding: 0 20px;
  color: #8f4598;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.65;
  text-transform: uppercase;
}
.home-page .features {
  padding: 60px 0;
  background: #fff;
}
.home-page .features .section-title,
.home-page .how-it-works .section-title {
  padding-top: 6px;
  margin-bottom: 28px;
}
.home-page .features-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
  background: transparent;
}
.home-page .feature-card {
  width: 100%;
  min-width: 0;
  padding: 24px 13px;
  border: 1px solid #ecdfef;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #fcf9fd);
  box-shadow: 0 5px 15px #65317506;
}
.home-page .feature-card h3 {
  margin: 6px 0 8px;
  color: #3d2b47;
  font-size: 0.98rem;
  line-height: 1.4;
}
.home-page .feature-card p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #716276;
}
.home-page .feature-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
  border: 1px solid #eddcf0;
  border-radius: 16px;
  background: #f5edf7;
  box-shadow: none;
}
.home-page .feature-card:nth-child(3n) .feature-icon {
  border-color: #f1e2b9;
  background: #fcf6e6;
  box-shadow: none;
}
.home-page .feature-card:nth-child(3n) .feature-icon i {
  color: #936b1e;
}
.home-page .benefit-icon {
  color: #88438e;
  background: #f5edf7;
  border: 1px solid #ebddee;
  box-shadow: none;
}
.home-page .benefit-icon i {
  color: inherit;
}
.home-page .how-it-works {
  max-width: 1100px;
  padding: 62px 0;
}
.home-page .steps-container {
  gap: 28px;
}
.home-page .step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  width: 88%;
  padding: 26px;
  border: 1px solid #e9ddec;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff, #fcf9fd);
  box-shadow: 0 7px 24px #5f35600c;
}
.home-page .step::before {
  width: 3px;
  background: linear-gradient(#c384cb, #9847a1);
}
.home-page .step::after {
  content: "0" attr(data-step);
  display: grid;
  place-items: center;
  position: absolute;
  inset: 21px 20px auto auto;
  width: 32px;
  height: 30px;
  border-radius: 8px;
  background: #faf1d9;
  color: #906a20;
  font: 700 0.72rem/1 var(--body-font, sans-serif);
  transform: none;
  z-index: 0;
}
.home-page .step-icon {
  flex: 0 0 auto;
  margin: 0;
  width: 56px;
  height: 56px;
  border: 1px solid #b970be;
  border-radius: 16px;
  background: #914897;
  box-shadow: none;
}
.home-page .step-content {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.home-page .step-content h3 {
  padding-right: 35px;
  color: #442d4e;
  font-size: 1.07rem;
  font-weight: 800;
  line-height: 1.45;
}
.home-page .step-content p {
  color: #6a5a72;
  font-size: 0.88rem;
  line-height: 1.8;
}
@media (max-width: 1050px) {
  .home-page .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Nine tool logos form three even rows instead of leaving an isolated tile. */
@media (max-width: 1100px) {
  .home-page .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    max-width: 650px;
    margin-inline: auto;
  }
  .home-page .tech-item {
    min-width: 0;
  }
  .home-page .tech-name {
    font-size: clamp(0.78rem, 2.2vw, 1rem);
  }
}
@media (max-width: 768px) {
  .home-page .step {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .home-page .features,
  .home-page .how-it-works {
    padding: 42px 0;
  }
  .home-page .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .home-page .feature-card {
    padding: 21px 12px;
  }
  .home-page .step {
    width: 100%;
    padding: 22px 17px;
    align-items: flex-start;
  }
  .home-page .step::after {
    top: 16px;
    right: 13px;
    width: 26px;
    height: 25px;
  }
  .home-page .step-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  .home-page .step-content h3 {
    font-size: 0.95rem;
    padding-right: 25px;
  }
  .home-page .step-content p {
    font-size: 0.82rem;
    line-height: 1.75;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .step:hover,
  .home-page .feature-card:hover {
    transform: none;
  }
}

/* Homepage level-grouped courses */
.home-page .courses-section .age-group {
  margin-top: 36px;
  padding: 32px 28px 28px;
  border: 1px solid #ebe3ef;
  background: linear-gradient(155deg, #fff, #fcf9fd);
}
.home-page .courses-section .age-group:first-of-type {
  margin-top: 24px;
}
.home-page .courses-section .age-group-header {
  text-align: left;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0e8f3;
}
.home-page .courses-section .age-group-header h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.home-page .courses-section .age-group-header p {
  font-size: 0.88rem;
  color: #73657b;
  line-height: 1.65;
  margin: 0;
}
.home-page .courses-section .level-badge {
  margin-bottom: 10px;
}
.home-page .courses-section .btn-see-more {
  display: table;
  margin: 20px 0 0;
  font-size: 0.82rem;
}
.home-page .courses-section .courses-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
  .home-page .courses-section .courses-grid {
    grid-template-columns: 1fr;
  }
  .home-page .courses-section .age-group {
    padding: 24px 18px 22px;
  }
}
