/* Team Card Layout */
.team-card {
    display: inline-flex;
    align-items: center;
    background-color: #f5ecd7;
    padding: 1rem;
    border-radius: 12px;
    /* width: 95%; */
    max-width: 800px; /* Prevents it from getting too wide */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    flex-wrap: wrap; /* Allow stacking on smaller screens */
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Profile Image */
/* Profile Image - Increase size */
.team-image {
    width: 170px;  /* Increase width */
    height: 170px; /* Increase height */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem; /* Adjust spacing */
}


/* Info Section */
.team-info {
    flex: 1;
    min-width: 200px; /* Ensures text doesn’t squeeze */
}

/* Text Styles */
.team-name {
    font-size: clamp(1.4rem, 2vw, 1.6rem); /* Responsive font size */
    font-weight: bold;
    margin: 0;
}

.team-role {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #7a6a48;
    margin: 0.3rem 0;
}

.team-divider {
    width: 100%;
    border: 0;
    height: 1px;
    background: #d3cbb3;
    margin: 0.5rem 0;
}

.team-description {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: #5a4e36;
    margin-bottom: 1rem;
}

/* Button */
.team-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border: 2px solid #7a6a48;
    border-radius: 30px;
    color: #7a6a48;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.team-button:hover {
    background: #7a6a48;
    color: #fff;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .team-info {
        min-width: auto;
    }
}
