@import url("../../assets-custom/root.css");

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--ea-background-color);
  color: var(--nav-color);
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 1160px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-top: 60px;
}

.hero img {
  width: 100%;
  border-radius: 10px;
}

.hero-text {
  display: flex;
  margin-top: 40px;
  text-align: start;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 200px;
}

.hero-text h1 {
  font-size: 60px;
  font-weight: bold;
  margin: 0;
  flex: 0 0 calc(50% - 20px);
}

.hero-text span {
  background-color: var(--ea-primary-color);
  display: inline-flex;
  height: 22px;
  align-items: flex-end;
  color: var(--text-color);
}

.right-column {
  flex: 0 0 calc(50% - 20px);
}

.right-column p {
  font-size: 22px;
  margin: 10px 0 20px;
  color: var(--text-color);
}

.right-column button {
  background-color: var(--button-colors);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1em;
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.feature-card {
  flex: 1;
}

.feature-card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.feature-card h3 {
  font-size: 1.5em;
  margin: 15px 0;
}

.feature-card p {
  color: var(--text-color);
  font-size: 1em;
}

/* Journey Section */
.journey-container {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
  flex-wrap: wrap;
  margin-block: 200px;
}

.journey-text {
  flex: 2;
  font-size: 1.5rem;
  color: var(--text-color);
}

.journey-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.journey-text p {
  font-size: 1.2rem;
  color: var(--ea-primary-color);
}

.journey-image {
  position: relative;
  flex: 3;
}

.journey-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.journey-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--ea-primary-color);
  color: var(--text-color);
  padding: 15px 20px;
  border-radius: 0 0 10px 0;
  max-width: 70%;
  font-size: 1rem;
}

/* Featured Classes Section */
.featured-classes {
  text-align: center;
  margin-bottom: 200px;
}

.featured-classes h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color:var(--ea-white-color);
}

.featured-classes-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.featured-class-card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 374px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: var(--ea-background-color);
  color: var(--ea-primary-color);
}

.featured-class-card img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-class-card p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.featured-classes button {
  background-color: var(--button-colors);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 50px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-text {
    flex-wrap: wrap;
  }

  .hero-text h1 {
    font-size: 50px;
  }

  .featured-class-card {
    flex: 1 1 calc(50% - 20px);
  }
  .journey-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-text {
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    margin-bottom: 100px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .features {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .journey-container {
    text-align: center;
    margin-block: 100px;
  }

  .journey-text {
    text-align: center;
  }

  .journey-overlay {
    position: relative;
    bottom: auto;
    padding: 15px;
    max-width: 100% !important;
  }

  .featured-classes {
    margin-bottom: 100px;
  }

  .featured-class-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .right-column p {
    font-size: 18px;
  }

  .right-column button {
    padding: 8px 16px;
  }

  .features {
    gap: 15px;
  }

  .journey-image img {
    min-height: 200px;
  }

  .featured-class-card p {
    font-size: 1rem;
  }
}
