.classes
{
    padding: 6rem;
    display: flex;
    flex-direction: row;   /* poprawnie: row lub column */
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 2rem;
}

/* = = = = = =   Sekcja zajęć   = = = = = = */


/* = = = = = = = =    ^    = = = = = = = = */
.classes-card {
    width: 30rem;
    height: 40rem;
    background-color: rgb(72, 110, 214);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    /* padding-top: 200px; */
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--classes-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(.4,1.4,.6,1), box-shadow 0.3s; /* <- tutaj! */
    
    border-radius: 40px;

    transition: 
    transform 0.6s cubic-bezier(.4,1.4,.6,1), 
    box-shadow 0.3s,
    margin-top 0.3s; /* Dodaj animację margin-top */
}

.classes-card:hover {
  margin-top: -15px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.classes-card:hover .classes-card-button
{
    background-color: #FF6700;
    border: 3px solid #FF6700;
}



.classes-card-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.classes-card-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: none;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s;
  border: 3px solid white;
}

@media(max-width: 1200px) {
  .classes-card {
    width: clamp(260px, 40vw, 400px);
    height: clamp(18rem, 55vw, 32rem);
  }
  .classes
  {
    padding: 0;
    padding-top: 3rem;
  }
}
@media(max-width: 750px) {
  .classes-card {
    width: 100%;
    height: 25rem;
  }
  .classes-card h1 {
    font-size: 2rem;
  }
  .classes
  {
    padding: 1.5rem;
  }
}
