.talents-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    padding-bottom: 80px; /* stały zapas od dołu, żeby nic nie było zasłaniane */
    min-height: fit-content;
    height: auto;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.talents-container.container-hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); /* opcjonalny efekt wizualny */
}

.talent-card {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    text-align: center;
    margin: 10px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
    z-index: 1;
}

.talent-card:hover {
    /* zamiast transform */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px; /* zostawia miejsce */
}


.talent_img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #0073aa;
    border-radius: 12px 12px 0 0;
    background-color: #f0f0f0;
}

.talent_name {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.talent_blog_div {
    background-color: brown;
}

.talent_blog_div a {
    display: block;
    color: #0073aa;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.talent_blog_div a:hover {
    text-decoration: underline;
}

.talent_superpowers {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

.talent_buttons button {
    font-weight: bold;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out;
}

.talent_buttons button:hover {
    transform: scale(1.05);
}

.talent_href_button {
    background-color: #0d6efd;
    color: white;
}

@media (max-width: 768px) {
    .talents-container {
        flex-direction: column;
        align-items: center;
    }

    .talent-card {
        max-width: 90%;
        padding: 15px;
    }
}
