
h2 {
    margin-top: 40px;
    margin-bottom: 50px;
    font-size: 28px;
}
.team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.team-member {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-member h4 {
    margin: 5px 0;
    font-size: 16px;
}

.team-member p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Hidden details */
.more-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 13px;
    color: #444;
    margin-top: 10px;
}

/* Show on hover */
.team-member:hover .more-info {
    max-height: 500px; /* 200px को 500px से बदलें ताकि सभी टेक्स्ट फिट हो जाए */
    opacity: 1;
}

@media (max-width: 768px) {
    .team-row {
        flex-direction: column;
        gap: 20px;
    }
}
