.carousel-container {
    position: relative;
    overflow: hidden;   
    width: 1120px;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.professor-card {
    width: 280px;
    padding: 40px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.avatar-wrapper {
    margin-bottom: 20px;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;    
}

.name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 15px 0 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-row {
    display: none;
}

.info-cell {
    padding: 0;
    display: block;
}

.description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
    max-width: 280px;
    margin: 0 auto;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 40px;
}