#faculty-intro .card-body {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
    color: #333;
    text-align: center;
    max-width: min(800px, 90vw);
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 2rem) clamp(0.5rem, 3vw, 1rem);
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#faculty-members .card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1rem, 4vw, 1.5rem);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

#faculty-members .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

#faculty-members .card-img-top {
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    transition: transform 0.5s ease;
    width: clamp(100px, 20vw, 180px);
    height: clamp(100px, 20vw, 180px);
}

#faculty-members .card-img-top:hover {
    transform: scale(1.1) rotate(5deg);
}

#faculty-members .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#faculty-members .card-title {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#faculty-members .card-text {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #555;
    margin-bottom: 0.5rem;
    word-break: break-word;
    line-height: 1.5;
}

#faculty-members .faculty-details small {
    color: #777;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.4;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    #faculty-members .card {
        min-height: 300px;
        padding: 1rem;
    }

    #faculty-intro .card-body {
        padding: 1.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    #faculty-members .card {
        min-height: 280px;
        padding: 0.75rem;
    }

    #faculty-intro .card-body {
        padding: 1rem 0.5rem;
    }
}
