

.kerho-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.kerho-hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.kerho-benefits {
  min-height: 800px;         /* voit pitää tai poistaa, riippuen halutusta korkeudesta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;        /* keskittää otsikon nätisti */
  align-items: center;
  align-content: center;
}

.kerho-benefits h1 {
  color: #fff;
  margin: 0 0 2rem;          /* poistaa oletusylämarginit ja antaa vain vähän tilaa alas */
}

.benefits-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.benefit-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 240px;
    text-align: center;
    flex: 1 1 240px;
    height: 240px;
}


.benefit-card img
{
    height: 140px;
    margin-bottom: -39px;
}


.benefit-card h3 {
  color: var(--kerho-color);
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 0rem;
}

.benefit-card p {
  color: var(--text-color-dark);
  margin-top:0.5rem;
}

.kerho-cta {
  text-align: center;
  margin: 3rem 1rem;
}
.kerho-cta-btn,
.kerho-cta a {
  background-color: var(--kerho-color);
  color: #fff !important;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.3s;
}

.kerho-cta a:hover {
  background-color: var(--kerho-color-highlight);
}



/*VALITSE JASENYYS*/


.kerho-membership-selection {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    align-items: center;
    align-content: center;
    height: auto;
    margin-top: 6rem;
}

.kerho-membership-selection h2 {
  font-family: 'Fredoka', sans-serif;
  color: var(--primary-blue);
  margin-bottom: 0rem;
  font-size: 2rem;
}

.membership-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top:3rem;
}

.membership-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  height:275px;
max-width: 275px;
  text-align: center;
  flex: 1 1 275px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-card:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.membership-card h3 {
  font-family: 'Fredoka', sans-serif;
color: var(--primary-color);
  margin-bottom: 0rem;
}

.membership-card p {
  color: var(--text-color-dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  margin-top:0.2rem;
}


.membership-card .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--kerho-color);
  margin: 0rem;
}

.membership-card .price span {
  font-size: 1rem;
  font-weight: normal;
  color: #555;
  margin-left: 0.25rem;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

  /* Hero */
  .kerho-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .kerho-hero p {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
    padding: 0 1rem; /* estää reunojen kiinnipysymisen */
  }

  /* Benefits */
  .kerho-benefits {
    min-height: auto; /* ei pakotettua korkeutta mobiilissa */
    padding: 2rem 1rem;
    text-align: center;
  }

  .kerho-benefits h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .benefits-cards {
    flex-direction: column;
    gap: 1rem;
  }

  .benefit-card {
    max-width: 100%;
    height: auto; /* sisällön mukaan */
    padding: 1.5rem;
  }

  .benefit-card img {
    height: 100px;
    margin-bottom: 0.5rem;
  }

  .benefit-card h3 {
    font-size: 1.2rem;
  }

  .benefit-card p {
    font-size: 0.9rem;
  }

  /* CTA */
  .kerho-cta {
    margin: 2rem 1rem;
  }

  .kerho-cta-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  /* Membership */
  .kerho-membership-selection h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .membership-card {
    max-width: 100%;
    padding: 1.5rem;
    height: auto;
  }

  .membership-card .price {
    font-size: 1.5rem;
  }

  .membership-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
}














