/* css/aboutus.css */

.about-us-intro {
    padding: 60px 20px;
    text-align: center;
}
.about-us-intro .container {
    max-width: 800px; /* Omezí šířku textu pro lepší čitelnost */
    margin: 0 auto;
}
.about-us-intro h1 {
    margin-bottom: 20px;
}
.about-us-intro p {
    font-size: 1.1em;
    line-height: 1.8;
}

.team-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Lehce odlišné pozadí pro sekci */
}
.team-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.member-row {
    display: grid;
    grid-template-columns: 250px 1fr; /* Pevná šířka pro fotku */
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}
.member-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.member-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.8em;
    color: var(--light-blue);
}
.member-position {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
    display: block;
}
.member-description {
    line-height: 1.7;
    color: #ccc;
}

/* Střídání layoutu pro desktop */
.member-row:nth-child(even) {
    grid-template-columns: 1fr 250px;
}
.member-row:nth-child(even) .member-photo {
    grid-column: 2;
}
.member-row:nth-child(even) .member-info {
    grid-column: 1;
    grid-row: 1; 
}

/* ========== MOBILNÍ ZOBRAZENÍ (PRO TELEFONY) ========== */
@media (max-width: 768px) {
    .about-us-intro {
        padding: 30px 20px; /* Menší odsazení */
    }
    .about-us-intro h1 {
        font-size: 2rem;
    }
    .about-us-intro p {
        font-size: 1em;
    }

    .team-section {
        padding: 40px 0;
    }
    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* Přepnutí obou variant řádku na jeden sloupec */
    .member-row, 
    .member-row:nth-child(even) {
        grid-template-columns: 1fr; /* Hlavní změna: jeden sloupec */
        text-align: center;
        gap: 20px; /* Menší mezera mezi fotkou a textem */
    }
    
    /* Explicitní reset pro sudé řádky, aby se předešlo konfliktům */
    .member-row:nth-child(even) .member-photo {
        grid-column: 1;
        grid-row: auto; /* Reset řazení */
    }
    .member-row:nth-child(even) .member-info {
        grid-column: 1;
        grid-row: auto; /* Reset řazení */
    }
    
    .member-photo {
        max-width: 250px; /* Omezí velikost fotky */
        margin: 0 auto; /* Vycentruje fotku */
    }

    .member-info h3 {
        font-size: 1.5em; /* Menší jméno */
    }
    .member-position {
        font-size: 1em;
    }
}