/* ==========================================================================
   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/zdj1234.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: #212121;
}
.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: #FFA550;
    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); 
}



/* Styl całej sekcji wideo */
.video-section {
    padding: 60px 0; /* Odstęp pionowy */
    background-color: #212121; /* Delikatne tło dla wyróżnienia sekcji */
}

/* Ustawia maksymalną szerokość i padding boczny, zgodnie z prośbą */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px; /* Padding po bokach dla telefonów */
}

/* Styl tytułu sekcji */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* --- KLUCZOWE STYLE DLA RESPONSYWNEGO WIDEO --- */

/* 1. Tworzymy kontener, który zachowa proporcje 16:9 */
.video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ten trik z paddingiem tworzy pudełko o proporcjach 16:9 (9 / 16 = 0.5625) */
    padding-top: 56.25%; 
    border-radius: 8px; /* Opcjonalnie: zaokrąglone rogi */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Opcjonalnie: subtelny cień */
}

/* 2. Rozciągamy iframe, aby idealnie wypełnił nasz kontener */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* === SEKCJA KONTAKTOWA === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-info .section-title-left,
.contact-form-wrapper .section-title-left {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    color: #555;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #FFF5E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFA550;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.contact-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212121;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #FFA550;
}

/* === FORMULARZ KONTAKTOWY === */
.contact-form-wrapper {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFA550;
    box-shadow: 0 0 0 3px rgba(255, 165, 80, 0.2);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-consent label {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.form-consent a {
    color: #FFA550;
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background-color: #FFA550;
    color: #1a1a1a;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    align-self: flex-start; /* Przycisk na lewo */
}

.cta-button:hover {
    background-color: #E69547;
    transform: translateY(-2px);
}

/* Media Queries */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
    .form-row {
        flex-direction: row;
    }
    
}


/* Ukrywanie lewej kolumny na telefonach (ekrany mniejsze niż 768px) */
@media (max-width: 767px) {
    .contact-info {
        display: none;
    }
    
    .contact-form-wrapper {
        padding: 20px; /* Opcjonalnie: nieco mniejszy padding na telefonie */
    }
    
    .cta-button {
        width: 100%; /* Opcjonalnie: przycisk na całą szerokość na telefonie */
        text-align: center;
    }
}



.offer-card {
    overflow: hidden; /* Żeby zaokrąglenia karty działały też na zdjęciu */
    display: flex;
    flex-direction: column;
}

.offer-image {
    width: 100%;
    height: 200px; /* Ustal stałą wysokość dla wszystkich zdjęć */
    object-fit: cover; /* Zdjęcie wypełni obszar bez zniekształceń */
    margin-bottom: 20px;
}

/* Styl dla trzeciego kafelka, jeśli jeszcze nie masz zdjęcia */
.offer-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    margin-bottom: 20px;
}