/* ==========================================================================
   STYLE DEDYKOWANE DLA /index.php
   ========================================================================== */

/* === SEKCJA HERO === */
.hero-section.with-background {
    color: #ffffff;
    background-image: linear-gradient(rgba(26, 26, 26, 0.65), rgba(26, 26, 26, 0.65)), url('/img/drzewo.jpeg');
    background-size: cover;
    background-position: center;
}
.hero-section.with-background .dynamic-text {
    color: #FFA550; /* Zapewnia, że dynamiczny tekst jest zawsze pomarańczowy */
}
.hero-section.with-background .hero-subtitle {
    color: #f0f0f0;
}


/* === SEKCJA "JAK UCZYMY?" === */
.how-we-teach-section {
    padding: 80px 20px;
}
.how-we-teach-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.how-we-teach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 60px;
}
.how-we-teach-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.how-we-teach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.how-we-teach-icon {
    color: #FFA550;
    display: inline-flex;
    margin-bottom: 20px;
}
.how-we-teach-icon svg {
    width: 48px;
    height: 48px;
}
.how-we-teach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.how-we-teach-card p {
    color: #555;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* === SEKCJA "PROCES NAUCZANIA" === */
.process-timeline-section {
    padding: 80px 20px;
    background-color: #ffffff;
}
.process-timeline-container {
    max-width: 800px;
    margin: 0 auto;
}
.process-timeline {
    margin-top: 60px;
    position: relative;
    display: grid;
    gap: 40px;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: #ffeeda;
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    padding-left: 60px;
}
.timeline-icon {
    position: absolute;
    left: 25px;
    transform: translateX(-50%);
    z-index: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #FFA550;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px #ffffff;
}
.timeline-content {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    flex-grow: 1;
    border: 1px solid #e0e0e0;
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* === SEKCJA DLA RODZICÓW - AKORDEON === */
.parent-accordion-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}
.parent-accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.parent-accordion {
    margin-top: 50px;
    text-align: left;
}
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 5px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212121;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.accordion-question:hover {
    color: #FFA550;
}
.accordion-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: #FFA550;
    transition: transform 0.3s ease-out;
    margin-left: 15px;
}
.accordion-item.active .accordion-question::after {
    transform: rotate(45deg);
}
.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-answer p {
    padding: 0 5px 20px 5px;
    margin: 0;
    line-height: 1.7;
    color: #555;
}

/* === SEKCJA OFERT === */
.offer-section {
    padding: 80px 20px;
}
.offer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.offer-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}
.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.offer-card h3 {
    font-size: 1.5rem;
    color: #212121;
    margin-bottom: 15px;
}
.offer-card p {
    color: #555;
}
.offer-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}
.offer-button:hover {
    background-color: #FFA550;
    color: #1a1a1a;
}

/* === SEKCJA "DLACZEGO MY?" (Z POPRAWKĄ IKON) === */
.why-us-section {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
}
.why-us-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.why-us-content {
    order: -1;
}
.why-us-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.why-us-content li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.why-us-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff5e6;
    border-radius: 50%;
    color: #FFA550;
}
.why-us-icon svg {
    width: 20px;
    height: 20px;
}

/* === SEKCJA FORMULARZA === */
.contact-form-section {
    padding: 80px 20px;
}

/* === SEKCJA FAQ === */
.faq-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* === SEKCJA CTA === */
.cta-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}
.cta-content h2 {
    color: #ffffff;
}
.cta-content p {
    color: #a9a9a9;
}


/* === MEDIA QUERIES === */
@media (min-width: 768px) {
    .how-we-teach-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-us-section {
        grid-template-columns: 1fr 1fr;
    }
    .why-us-content {
        order: initial;
    }
    .offer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .offer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- SKALOWANIE SEKCJI HERO NA URZĄDZENIA MOBILNE --- */

@media (max-width: 768px) {
    /* * 1. Zmniejszamy padding sekcji, aby dać więcej miejsca na treść.
     * Na dużym ekranie chcemy więcej "oddechu", na małym - więcej treści.
     */
    .hero-section {
        padding: 40px 15px; /* Mniejsze odstępy po bokach i z góry/dołu */
    }

    /* * 2. Znacząco zmniejszamy główny nagłówek, aby zmieścił się
     * w całości i nie przytłaczał widoku.
     */
    .hero-content h1 {
        font-size: 2.5rem; /* Znaczące zmniejszenie czcionki */
        text-align: center; /* Wycentrowanie, które dodaliśmy wcześniej */
    }

    /* * 3. Zmieniamy element <span> z tekstem dynamicznym w blok.
     * To jest reguła z poprzedniego zadania, która przenosi go do nowej linii.
     */
    .dynamic-text {
        display: block;
    }

    /* * 4. Lekko zmniejszamy czcionkę podtytułu.
     */
    .hero-subtitle {
        font-size: 1rem; /* Subtelne zmniejszenie dla zachowania proporcji */
        line-height: 1.5; /* Poprawia czytelność dłuższego tekstu */
    }

    /* * 5. Możemy też delikatnie dostosować przycisk, aby nie był zbyt duży.
     */
    .hero-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

.hero-content h1 {
    /* Płynne skalowanie czcionki */
    /* MIN: 2.5rem, IDEALNY: 5vw, MAX: 4rem */
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem); 
}