/* why-acrobatics
why-acrobatics-content
why-acrobatics-content-graphic
why-acrobatics-content-describe */

.why-acrobatics {
    width: 100%;
    padding: 2rem;
    background-color: #7D6FE3; /* Light background for contrast */
    

    
}

.why-acrobatics-content-graphic{
    text-align: right;
}
.why-acrobatics-content-graphic img{
    width: 64px;
    
}

.why-acrobatics-content {
   
    height: 25rem;
    width: 19rem;
    padding: 2rem;
    background-color: #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-acrobatics-header
{
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    margin-bottom: 2rem;
}

.why-acrobatics-header h2
{
    font-style: italic;
}

.why-acrobatics-header h3 {
    font-weight: 400;
}

.why-acrobatics-header h3 span {
    font-weight: 300;
}

.why-acrobatics-justify
{
    max-width: 1200px;
    /* margin-top: 5rem;
    margin-bottom: 5rem; */
    margin: 0 auto;
    flex-wrap: nowrap;
    justify-content: left;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden; /* Ukrywa przewijanie pionowe */

}

.why-acrobatics-footer {
  width: 100%;
  height: 50px;
  background: #7D6FE3;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}




/* .why-acrobatics-content:nth-child(1)
{
    height: 35rem;
    padding: 1rem;
}
.why-acrobatics-content:nth-child(2)
{
    height: 37rem;
    padding: 2rem 1rem 2rem 1rem;
}
.why-acrobatics-content:nth-child(3)
{
    height: 39rem;
    padding: 3rem 1rem 3rem 1rem;
} */




.why-acrobatics-content-describe {
    width: 100%;
}

.why-acrobatics-content-describe h4{
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.why-acrobatics-content-describe p{
    color: #333; /* Dark text for readability */
    font-size: 0.9rem;
    font-weight: 500;
    
}

@media (max-width: 1200px) {
  .why-acrobatics-justify {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolumny */
    grid-auto-rows: minmax(18rem, auto); /* wysokość wierszy */
    gap: 1rem;
    justify-items: center;
    align-items: stretch;
    overflow-x: visible;
  }
  .why-acrobatics-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 20rem;
    padding: 1.2rem;
  }
}

@media (max-width: 800px) {
  .why-acrobatics-justify {
    grid-template-columns: 1fr; /* 1 kolumna na telefonie */
  }
  .why-acrobatics-content {
    height: auto;
    padding: 1rem;
  }
}