
:root {
  --primary: #00D632;
  --dark: #111111;
  --light: #ffffff;
  --gray: #f5f5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 800;
  margin-top: 0;
}

h1 {
  font-size: 3rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 214, 50, 0.3);
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero-image {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: scale(1.05); /* slightly zoomed */
}

.explanation {
  padding: 4rem 2rem;
  background-color: var(--gray);
}

.explanation .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.explanation .text, .explanation .image {
  flex: 1;
  min-width: 300px;
}

.explanation .image {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

.explanation .image img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
}

.explanation .before img {
  top: 100%; /* show bottom half */
}

.explanation .after img {
  top: 0; /* show top half */
}

.explanation .caption {
  text-align: center;
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.after-section {
  background-color: var(--light);
}

.curriculum {
  padding: 4rem 2rem;
  background-color: var(--gray);
}

.curriculum .modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.module {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.module-image {
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.module-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.community {
  padding: 4rem 2rem;
  background-color: var(--light);
  text-align: center;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.testimonial {
  background: var(--gray);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  flex: 1;
  min-width: 300px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial .author {
  font-weight: 700;
  color: var(--primary);
}

.cta {
  padding: 6rem 2rem;
  text-align: center;
  background-color: var(--primary);
  color: var(--light);
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta .button {
  background-color: var(--light);
  color: var(--primary);
}

.cta .button:hover {
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 2rem 1rem; }
  .explanation .content { flex-direction: column; }
  .curriculum .modules { grid-template-columns: 1fr; }
}
