/* Committee Page Specific Styles */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.committee-member {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.committee-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.member-image:hover img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.member-info h4 {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-info p {
    color: #6b7280;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-info p.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6d28d9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: flex-start;
    cursor: pointer;
    border: none;
}

.read-more-btn:hover {
    background-color: #5b21b6;
}

@media (max-width: 768px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }

    .member-image {
        height: 250px;
    }
}
