/* ======================================================= */
/* WTYCZKA KADRA TRENERSKA - OSTATECZNY UKŁAD POZIOMY */
/* ======================================================= */

.trenerzy-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.trener-card {
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px
    10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
}

.trener-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* 1. USTAWIENIE STAŁEGO ROZMIARU ZDJĘCIA */
.trener-photo {
    flex-shrink: 0; /* Zapobiega kurczeniu się zdjęcia */
    width: 120px;
    height: 150px;
}

.trener-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gwarantuje wypełnienie bez zniekształceń */
}

.trener-placeholder {
    width: 120px;
    height: 150px;
    background-color: #e9e9e9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,15 C33.4,15 20,28.4 20,45 C20,61.6 33.4,75 50,75 C66.6,75 80,61.6 80,45 C80,28.4 66.6,15 50,15 Z M50,65 C38.9,65 30,56.1 30,45 C30,33.9 38.9,25 50,25 C61.1,25 70,33.9 70,45 C70,56.1 61.1,65 50,65 Z M15,85 L85,85 L85,95 L15,95 Z" fill="%23cccccc"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}


/* 2. WYRÓWNANIE BLOKU TEKSTU DO GÓRY */
.trener-info {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* ZMIANA: Wyrównanie zawartości do góry */
    justify-content: flex-start;
    font-size: 14px;
    color: #555;
}

/* 3. ZMNIEJSZONE ODSTĘPY WEWNĄTRZ TEKSTU */
.trener-info h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin: 0 0 3px 0; /* Mniejszy odstęp pod nazwiskiem */
}

.trener-info p {
    margin: 2px 0; /* Mniejsze odstępy między liniami */
    line-height: 1.4;
}

.trener-telefon,
.trener-email {
    display: flex;
    align-items: center;
}

.trener-info .dashicons {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.trener-info .trener-grupa {
    font-weight: bold;
    color: #333;
}

.trener-info a {
    text-decoration: none;
    color: #0073aa;
}

.trener-info a:hover {
    text-decoration: underline;
}